V962 Branch
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_ypbind@4456 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
236e70517e
72
etc/init.d/ypclient
Normal file
72
etc/init.d/ypclient
Normal file
@ -0,0 +1,72 @@
|
||||
#!/bin/sh
|
||||
# Begin /etc/init.d/network
|
||||
# Script zum start des automount Daemons
|
||||
# Wenn die Datei /etc/sysconfig/auto.master vorhanden ist, wird
|
||||
# der automount Daemon gestartet
|
||||
# Die Timeout Konfiguration erfolg über die Datei /etc/sysconfig/autofstime
|
||||
# (c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
# $Author$
|
||||
# $Date$
|
||||
# $Revision$
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.5 2007/01/25 16:27:33 segler
|
||||
# we should check if yp.conf is present and then decide whether to start ypbind with option broadcast or not...
|
||||
# Now we do...
|
||||
#
|
||||
# Revision 1.4 2006/06/28 12:06:58 kueller
|
||||
# ypbind muss mit -broadcast gestartet werden, oder eine /etc/yp.conf vorliegen
|
||||
#
|
||||
# Revision 1.3 2003/04/19 07:43:45 kueller
|
||||
# Usage Ausgabe um restart option erweitert
|
||||
#
|
||||
# Revision 1.2 2003/04/19 07:41:44 kueller
|
||||
# restart option eingebaut
|
||||
#
|
||||
# Revision 1.1.1.1 2001/09/23 01:16:29 kueller
|
||||
# Neustart wg. Datenverlust
|
||||
#
|
||||
# Revision 1.2 2001/08/25 20:47:47 kueller
|
||||
#
|
||||
# Neue NIS package ist mit config in /etc/sysconfig/nis kompiliert - daher
|
||||
# nun auch defaultdomain in diesem Verzeichniss
|
||||
#
|
||||
# Revision 1.1.1.1 2001/08/24 09:50:52 kueller
|
||||
# AddOns fuer ypbind
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
source /etc/init.d/functions
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||||
echo -n "starting NIS Client"
|
||||
domainname `cat /etc/sysconfig/nis/defaultdomain`
|
||||
if [ -f /etc/yp.conf ]; then
|
||||
ypbind
|
||||
else
|
||||
ypbind -broadcast
|
||||
fi
|
||||
evaluate_retval
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||||
echo -n "shutting down NIS Client"
|
||||
pkill ypbind
|
||||
evaluate_retval
|
||||
fi
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0: {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
#end /etc/inet.d/ypclient
|
46
init/genpkg
Normal file
46
init/genpkg
Normal file
@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
#genpkg Script für ypbind
|
||||
#(c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
#$Author$
|
||||
#$Date$
|
||||
#$Revision$
|
||||
#
|
||||
#$Log$
|
||||
#Revision 1.6 2002/09/11 18:18:22 hkueller
|
||||
#S12 auf S13 geändert. ypclient wird sonst vor ypserv gestartet
|
||||
#
|
||||
#Revision 1.5 2001/10/17 08:44:00 kueller
|
||||
#rechtekorrektur für init script
|
||||
#
|
||||
#Revision 1.4 2001/10/02 22:02:07 kueller
|
||||
#Fehler beim anlegen von etc/sysconfig/nis - Option -p fuer mkdir fehlte
|
||||
#
|
||||
#Revision 1.3 2001/10/02 21:59:38 kueller
|
||||
#sysconfig/nis wurde noch faelschlicherweise unter /etc/init.d/sysconfig/nis
|
||||
#angelegt.
|
||||
#
|
||||
#Revision 1.2 2001/09/28 22:34:49 kueller
|
||||
#/etc/sysconfig/nis wird nun definitiv angelegt
|
||||
#
|
||||
#Revision 1.1.1.1 2001/09/23 01:16:29 kueller
|
||||
#Neustart wg. Datenverlust
|
||||
#
|
||||
#
|
||||
|
||||
WDIR=`pwd`
|
||||
mkdir -p etc/sysconfig/nis
|
||||
cd etc/init.d
|
||||
chmod 755 ypclient
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../ypclient K75ypclient
|
||||
cd ..
|
||||
done
|
||||
for i in 2 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../ypclient S13ypclient
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
Loading…
Reference in New Issue
Block a user