Mercurial > hg > dhcpcd
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 5534:605f7f9a20c0 | 5535:a0d828e25482 |
|---|---|
| 66 eval $ypbind_restart_cmd | 66 eval $ypbind_restart_cmd |
| 67 fi | 67 fi |
| 68 fi | 68 fi |
| 69 } | 69 } |
| 70 | 70 |
| 71 if [ "$reason" = PREINIT ]; then | 71 if ! $if_configured; then |
| 72 ; | |
| 73 elif [ "$reason" = PREINIT ]; then | |
| 72 rm -f "$ypbind_dir/$interface".* | 74 rm -f "$ypbind_dir/$interface".* |
| 73 elif $if_up || $if_down; then | 75 elif $if_up || $if_down; then |
| 74 if [ -n "$new_nis_domain" ]; then | 76 if [ -n "$new_nis_domain" ]; then |
| 75 if valid_domainname "$new_nis_domain"; then | 77 if valid_domainname "$new_nis_domain"; then |
| 76 make_yp_binding | 78 make_yp_binding |
