mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 17:02:58 +02:00
Alpha2 - Aenderungen von Arne F. eingepflegt.
...sonst noch kleine Fixes. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@569 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -24,19 +24,19 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
if (strcmp(argv[1], "start") == 0) {
|
||||
safe_system("/etc/rc.d/init.d/ntpd start");
|
||||
safe_system("/etc/rc.d/init.d/ntp start");
|
||||
} else if (strcmp(argv[1], "stop") == 0) {
|
||||
safe_system("/etc/rc.d/init.d/ntpd stop");
|
||||
safe_system("/etc/rc.d/init.d/ntp stop");
|
||||
} else if (strcmp(argv[1], "restart") == 0) {
|
||||
safe_system("/etc/rc.d/init.d/ntpd restart");
|
||||
safe_system("/etc/rc.d/init.d/ntp restart");
|
||||
} else if (strcmp(argv[1], "enable") == 0) {
|
||||
safe_system("ln -fs ../init.d/ntpd /etc/rc.d/rc3.d/S26ntpd >/dev/null 2>&1");
|
||||
safe_system("ln -fs ../init.d/ntpd /etc/rc.d/rc0.d/K46ntpd >/dev/null 2>&1");
|
||||
safe_system("ln -fs ../init.d/ntpd /etc/rc.d/rc6.d/K46ntpd >/dev/null 2>&1");
|
||||
safe_system("/etc/rc.d/init.d/ntpd start");
|
||||
safe_system("ln -fs ../init.d/ntp /etc/rc.d/rc3.d/S26ntpd >/dev/null 2>&1");
|
||||
safe_system("ln -fs ../init.d/ntp /etc/rc.d/rc0.d/K46ntpd >/dev/null 2>&1");
|
||||
safe_system("ln -fs ../init.d/ntp /etc/rc.d/rc6.d/K46ntpd >/dev/null 2>&1");
|
||||
safe_system("/etc/rc.d/init.d/ntp start");
|
||||
} else if (strcmp(argv[1], "disable") == 0) {
|
||||
safe_system("/etc/rc.d/init.d/ntpd stop");
|
||||
safe_system("rm -f /etc/rc.d/rc*.d/*ntpd >/dev/null 2>&1");
|
||||
safe_system("rm -f /etc/rc.d/rc*.d/*ntp >/dev/null 2>&1");
|
||||
} else {
|
||||
fprintf(stderr, "\nBad argument given.\n\ntimectrl (start|stop|restart)\n\n");
|
||||
exit(1);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
package Conf;
|
||||
|
||||
$version = "2.0alpha1";
|
||||
$version = "2.0alpha2";
|
||||
|
||||
$mainserver = "pakfire.ipfire.org";
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ require 'CONFIG_ROOT/general-functions.pl';
|
||||
umask 022;
|
||||
|
||||
unlink "${General::swroot}/red/active";
|
||||
system "/etc/rc.d/init.d/network red update";
|
||||
system "/etc/rc.d/init.d/net/red/update";
|
||||
|
||||
# Beep when ppp goes up or down. Silence if 'nobeeps' file exists.
|
||||
if ( ! -e "${General::swroot}/ppp/nobeeps") {
|
||||
|
||||
@@ -50,7 +50,7 @@ if (open(FILE, ">${General::swroot}/red/local-ipaddress")) { print FILE $ARGV[3
|
||||
if (open(FILE, ">${General::swroot}/red/remote-ipaddress")) { print FILE $ARGV[4]; close (FILE); }
|
||||
|
||||
system('/usr/bin/touch', "${General::swroot}/red/active");
|
||||
system('/etc/rc.d/init.d/network red update');
|
||||
system('/etc/rc.d/init.d/net/red/update');
|
||||
|
||||
# Beep when ppp goes up or down. Silence if 'nobeeps' file exists.
|
||||
if ( ! -e "${General::swroot}/ppp/nobeeps") {
|
||||
|
||||
Reference in New Issue
Block a user