diff --git a/etc/init/ypclient.conf b/etc/init/ypclient.conf index cfe1662..ce6af1f 100644 --- a/etc/init/ypclient.conf +++ b/etc/init/ypclient.conf @@ -17,7 +17,16 @@ pre-start script else exit 10 fi + if [ -f /etc/yp.conf ]; then + echo "" >/tmp/yp_options + else + echo "-broadcast" >/tmp/yp_options + fi end script expect daemon -exec /usr/sbin/ypbind +exec /usr/sbin/ypbind `cat /tmp/yp_options` + +post-start script + rm /tmp/yp_options +end script