diff options
author | Ilya Lipnitskiy | 2015-10-12 17:49:50 -0700 |
---|---|---|
committer | Ilya Lipnitskiy | 2015-10-12 17:49:50 -0700 |
commit | dd12365b55250d6e6daff694d4e776f22ca96dd4 (patch) | |
tree | 1ada3bf65c5a71129c083b94fcbf90845b9638eb /10-ypconf | |
download | aur-dd12365b55250d6e6daff694d4e776f22ca96dd4.tar.gz |
Initial commit
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 |