V962 Branch
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_ez-ipupdate@4365 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
8d98cc6967
60
etc/init.d/ez-ipupdate
Normal file
60
etc/init.d/ez-ipupdate
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#ez-ipupdate des systemvinit prozesses
|
||||||
|
#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution
|
||||||
|
#(c) Rainmaker MultiMedia OHG
|
||||||
|
#
|
||||||
|
#$Author$
|
||||||
|
#$Date$
|
||||||
|
#$Revision$
|
||||||
|
#
|
||||||
|
#$Log$
|
||||||
|
#Revision 1.3 2002/11/04 22:41:46 kueller
|
||||||
|
#Fehlende ez-ipupdate daemon configuration wird nun abgefangen, und
|
||||||
|
#erzeugt keine fehlermeldung mehr.
|
||||||
|
#
|
||||||
|
#Revision 1.2 2002/05/16 08:54:52 hkueller
|
||||||
|
#ez-ipupdate wird nun durch die Dateien /etc/sysconfig/ez-ipupdate/* gesteuert.
|
||||||
|
#Die Datei muß wie die dynamic DNS Domain und Hostname heissen
|
||||||
|
#
|
||||||
|
#Revision 1.1.1.1 2002/02/13 16:09:42 hkueller
|
||||||
|
#New Packet ez-ipupdate
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
source /etc/init.d/functions
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
if ls /etc/sysconfig/ez-ipupdate/* >/dev/null 2>&1; then
|
||||||
|
for i in /etc/sysconfig/ez-ipupdate/*; do
|
||||||
|
echo -n "Starting ez-ipupdate for `basename $i`"
|
||||||
|
/usr/bin/ez-ipupdate -h `basename $i` \
|
||||||
|
-c $i
|
||||||
|
evaluate_retval
|
||||||
|
echo -n "Starting ez-ipupdate daemon for `basename $i`"
|
||||||
|
/usr/bin/ez-ipupdate -d -h `basename $i` \
|
||||||
|
-c $i
|
||||||
|
evaluate_retval
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
echo -n "Stopping ez-ipupdate daemon"
|
||||||
|
pkill -9 -f /usr/bin/ez-ipupdate
|
||||||
|
evaluate_retval
|
||||||
|
;;
|
||||||
|
|
||||||
|
restart)
|
||||||
|
$0 stop
|
||||||
|
/usr/bin/sleep 1
|
||||||
|
$0 start
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start|stop|restart}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
35
init/genpkg
Normal file
35
init/genpkg
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Packet initialisierung für ez-ipupdate
|
||||||
|
#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution
|
||||||
|
#(c) Rainmaker MultiMedia OHG
|
||||||
|
#
|
||||||
|
#$Author$
|
||||||
|
#$Date$
|
||||||
|
#$Revision$
|
||||||
|
#
|
||||||
|
#$Log$
|
||||||
|
#Revision 1.2 2002/02/13 16:11:01 hkueller
|
||||||
|
#rc?.d Verzeichnisse werden nun vor benutzung angelegt
|
||||||
|
#
|
||||||
|
#Revision 1.1.1.1 2002/02/13 16:09:42 hkueller
|
||||||
|
#New Packet ez-ipupdate
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
WDIR=`pwd`
|
||||||
|
cd etc/init.d
|
||||||
|
for i in 2 3 4 5; do
|
||||||
|
mkdir rc$i.d
|
||||||
|
cd rc$i.d
|
||||||
|
ln -s ../ez-ipupdate S13ez-ipupdate
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
for i in 0 1 6; do
|
||||||
|
mkdir rc$i.d
|
||||||
|
cd rc$i.d
|
||||||
|
ln -s ../ez-ipupdate K75ez-ipupdate
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
cd ..
|
||||||
|
mkdir -p sysconfig/ez-ipupdate
|
||||||
|
cd $WDIR
|
Loading…
Reference in New Issue
Block a user