nun haben wir wieder eine funktionierene ypbind startup implementierung, die auch broadcasts unterstÃŒtzt

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_ypbind@5814 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2010-08-29 15:21:22 +00:00
parent 94b9bf50bf
commit 7fa76a7a6b
2 changed files with 42 additions and 10 deletions

View File

@ -17,16 +17,7 @@ pre-start script
else else
exit 10 exit 10
fi fi
if [ -f /etc/yp.conf ]; then
echo "" >/tmp/yp_options
else
echo "-broadcast" >/tmp/yp_options
fi
end script end script
expect daemon expect daemon
exec /usr/sbin/ypbind `cat /tmp/yp_options` exec /usr/sbin/start_ypbind
post-start script
rm /tmp/yp_options
end script

41
usr/sbin/start_ypbind Executable file
View File

@ -0,0 +1,41 @@
#!/bin/bash
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
#dieses Framework wird im CVS Repository
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
#
#Lage dieser Datei im Archiv: $HeadURL$
#
#(c) 2003 Harald Kueller, Germany
#This program is free software; you can redistribute it and/or
#modify ist under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version
#2 of the License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#See the GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program; if not write to the Free Software Foundation,
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#Beschreibung:
#Script zum Start von ypbind abhaengig vom
#vorhandensein einer yp.conf in /etc.
#ist yp.conf nicht vorhanden, soll bind broadcasts machen,
#ansonsten sich mit dem in yp.conf genannten nis server verbinden.
#
#Aufrufparameter:
#
#Letzte Änderung von: $Author$
#Datum der letzten Änderung: $Date$
#Version der Datei: $Revision$
#
if [ -f /etc/yp.conf ]; then
exec ypbind
else
exec ypbind -broadcast
fi