diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-09-12 11:02:59 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-09-12 11:02:59 +0000 |
commit | c0b8344c4f090070988c60dcffe47707c5605b05 (patch) | |
tree | 1bdbf87a5e316c5d7cf98dbb3c736a70db394a38 | |
parent | bad540c3414709a168fbd423134b7ff8678b9419 (diff) | |
download | drakx-backup-do-not-use-c0b8344c4f090070988c60dcffe47707c5605b05.tar drakx-backup-do-not-use-c0b8344c4f090070988c60dcffe47707c5605b05.tar.gz drakx-backup-do-not-use-c0b8344c4f090070988c60dcffe47707c5605b05.tar.bz2 drakx-backup-do-not-use-c0b8344c4f090070988c60dcffe47707c5605b05.tar.xz drakx-backup-do-not-use-c0b8344c4f090070988c60dcffe47707c5605b05.zip |
a fix from florin/pixel to make it work
-rwxr-xr-x | perl-install/standalone/drakgw | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/perl-install/standalone/drakgw b/perl-install/standalone/drakgw index 8bd5ed9ed..29150dc74 100755 --- a/perl-install/standalone/drakgw +++ b/perl-install/standalone/drakgw @@ -80,16 +80,12 @@ sub start_daemons () system("/etc/rc.d/init.d/dhcpd status >/dev/null") == 0 and sys("/etc/rc.d/init.d/dhcpd stop"); system("/etc/rc.d/init.d/named status >/dev/null 2>/dev/null") == 0 and sys("/etc/rc.d/init.d/named stop"); - my $netmon = '/usr/sbin/net_monitor'; - my $netmon_need_start; - if (-x $netmon && `$netmon --status` eq 1) { - $netmon_need_start = 1; - system("$netmon --disconnect --force --quiet >/dev/null"); - } + my $netscripts = '/etc/sysconfig/network-scripts'; + sys("$netscripts/net_cnx_down >/dev/null"); sys("/etc/rc.d/init.d/network restart"); - $netmon_need_start and system("$netmon --connect --force --quiet >/dev/null"); + sys("$netscripts/net_cnx_up >/dev/null"); - sys("/etc/init.d/shorewall restart"); + sys("/etc/init.d/shorewall restart >/dev/null"); sys("/etc/rc.d/init.d/$_ start"), sys("/sbin/chkconfig --level 345 $_ on") foreach 'named', 'dhcpd', 'shorewall'; sys("/etc/rc.d/init.d/cups start") if $cups_used; |