From c0b8344c4f090070988c60dcffe47707c5605b05 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 12 Sep 2002 11:02:59 +0000 Subject: a fix from florin/pixel to make it work --- perl-install/standalone/drakgw | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'perl-install/standalone/drakgw') 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; -- cgit v1.2.1