Compare commits

...

No commits in common. "v961" and "v963" have entirely different histories.
v961 ... v963

2 changed files with 36 additions and 15 deletions

19
etc/init/ntpd.conf Normal file
View File

@ -0,0 +1,19 @@
description "Samba Name Deamon"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [2345] and (started ifup))
stop on runlevel [016]
console output
pre-start script
if [ -f /etc/ntp.conf ]; then
/usr/bin/ntpdate `grep server /etc/ntp.conf|head --lines=1|sed -e "s/server //g"`
else
exit 10
fi
end script
exec /usr/bin/ntpd -n -l /var/log/ntp.log

View File

@ -32,18 +32,20 @@
# #
# #
WDIR=`pwd` if [ -d /var/install/sysvinit* ]; then
cd etc/init.d WDIR=`pwd`
chmod 755 ntp cd etc/init.d
mkdir rc{0,1,2,3,4,5,6}.d chmod 755 ntp
for i in 0 1 2 6; do mkdir rc{0,1,2,3,4,5,6}.d
cd rc$i.d for i in 0 1 2 6; do
ln -s ../ntp K75ntp cd rc$i.d
cd .. ln -s ../ntp K75ntp
done cd ..
for i in 3 4 5; do done
cd rc$i.d for i in 3 4 5; do
ln -s ../ntp S13ntp cd rc$i.d
cd .. ln -s ../ntp S13ntp
done cd ..
cd $WDIR done
cd $WDIR
fi