From 94b9bf50bfa5b1ccfcdcc5a2d0203e0267fd60e0 Mon Sep 17 00:00:00 2001 From: kueller Date: Thu, 19 Aug 2010 19:25:52 +0000 Subject: [PATCH] Broadcast mode funktioniert jetzt wieder git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_ypbind@5793 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init/ypclient.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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