diff options
Diffstat (limited to '10-ypconf')
-rw-r--r-- | 10-ypconf | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/10-ypconf b/10-ypconf new file mode 100644 index 000000000000..d7f5eab529d7 --- /dev/null +++ b/10-ypconf @@ -0,0 +1,14 @@ +#!/bin/bash + +# DHCPv4 +if [ -n "$DHCP4_NIS_DOMAIN" ] && [ -n "$DHCP4_NIS_SERVERS" ]; then + case "$2" in + dhcp4-change) + yp_conf_new=/etc/yp.conf + echo "#Generated by NetworkManager dispatcher" > $yp_conf_new + for nis_server in $DHCP4_NIS_SERVERS; do + echo "domain $DHCP4_NIS_DOMAIN server $nis_server" >> $yp_conf_new + done + ;; + esac +fi |