V961 Tree Umbau

git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_nss-ldap@4290 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2008-05-03 16:59:01 +00:00
commit 7b23bd3a18
3 changed files with 108 additions and 0 deletions

39
etc/init.d/disableldap Executable file
View File

@ -0,0 +1,39 @@
#!/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) CompuExtreme, 1999-2008 Harald Kueller
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.1 2007/05/09 08:01:08 kueller
#Initial revision
#
#
source /etc/init.d/functions
case "$1" in
start)
if grep ldap /etc/nsswitch.conf &>/dev/null; then
echo "Disabling ldap login services"
mv /etc/nsswitch.conf /etc/nsswitch.store &&
cp /etc/nsswitch.dns /etc/nsswitch.conf
evaluate_retval
fi
;;
stop)
echo -n
;;
*)
echo "Usage: $0: {start|stop|restart}"
exit 1
;;
esac
# End /etc/init.d/mountfs

42
etc/init.d/enableldap Executable file
View File

@ -0,0 +1,42 @@
#!/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) CompuExtreme, 1999-2008 Harald Kueller
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.1 2007/05/09 08:01:08 kueller
#Initial revision
#
#
source /etc/init.d/functions
case "$1" in
start)
if [ -f /etc/nsswitch.store ]; then
if [ ! -f /var/state/ldap_disable ]; then
echo -n "restore ldap login services"
mv /etc/nsswitch.store /etc/nsswitch.conf
evaluate_retval
else
rm /var/state/ldap_disable
rm /etc/nsswitch.store
fi
fi
;;
stop)
echo -n
;;
*)
echo "Usage: $0: {start|stop|restart}"
exit 1
;;
esac
#end /etc/inet.d/network

27
init/genpkg Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
#genpkg für rpc
#(c) Rainmaker MultiMedia OHG
#
#$Author$
#$Date$
#$Revision$
#
#$Log$
#Revision 1.1 2007/05/09 08:01:08 kueller
#Initial revision
#
#Revision 1.1.1.1 2001/09/22 23:48:56 kueller
#Neustart wg. Datenverlust
#
#
WDIR=`pwd`
cd etc/init.d
mkdir rc{0,1,2,3,4,5,6}.d
for i in 2 3 4 5; do
cd rc$i.d
ln -s ../disableldap S02disableldap
ln -s ../enableldap S13enableldap
cd ..
done
cd $WDIR