mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
IMQ Device in den Kernel kompiliert.
QoS Fit fuer die neue Version gemacht. NTPd Startscript angepasst. (Das andere dauerte einfach zu lange zum starten!) git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@405 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
#!/bin/sh
|
||||
# Begin $rc_base/init.d/ntp
|
||||
|
||||
#$LastChangedBy: bdubbs $
|
||||
#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. $rc_functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
boot_mesg "Starting ntpd..."
|
||||
ntpd -gqx
|
||||
loadproc /usr/bin/ntpd
|
||||
loadproc /usr/bin/ntpd -Ap /var/run/ntpd.pid
|
||||
;;
|
||||
|
||||
stop)
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
/* Ipcop helper program - restartntpd
|
||||
/* IPFire helper program - restartntpd
|
||||
*
|
||||
* Starts or stops the ntpd daemon
|
||||
*
|
||||
* (c) Darren Critchley 2003
|
||||
*
|
||||
* $Id: restartntpd.c,v 1.5 2003/12/19 14:29:09 riddles Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -25,7 +21,7 @@ int main(void)
|
||||
if (!(initsetuid()))
|
||||
exit(1);
|
||||
|
||||
safe_system("/etc/rc.d/init.d/ntp stop 2> /dev/null");
|
||||
safe_system("/etc/rc.d/init.d/ntp stop 2>&1 >/dev/null");
|
||||
sleep(3);
|
||||
|
||||
if ((fd = open(CONFIG_ROOT "/time/allowclients", O_RDONLY)) != -1)
|
||||
@@ -36,7 +32,7 @@ int main(void)
|
||||
|
||||
if (enable)
|
||||
{
|
||||
safe_system("/etc/rc.d/init.d/ntp start");
|
||||
safe_system("/etc/rc.d/init.d/ntp start 2>&1 >/dev/null");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user