Mercurial > hg > dhcpcd
diff hooks/50-ypbind.in @ 5535:a0d828e25482 draft
Add --noconfigure option
With this set dhcpcd will not configure anything on the host.
The expectation is that a 3rd party script will instead.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 04 Nov 2020 14:18:48 +0000 |
| parents | 0b2abe4e9d2e |
| children |
line wrap: on
line diff
--- a/hooks/50-ypbind.in Wed Nov 04 11:31:40 2020 +1300 +++ b/hooks/50-ypbind.in Wed Nov 04 14:18:48 2020 +0000 @@ -68,7 +68,9 @@ fi } -if [ "$reason" = PREINIT ]; then +if ! $if_configured; then + ; +elif [ "$reason" = PREINIT ]; then rm -f "$ypbind_dir/$interface".* elif $if_up || $if_down; then if [ -n "$new_nis_domain" ]; then
