From d487e994584b51b3aace662d25a38ce962a42776 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 15 May 2013 13:19:25 -0700 Subject: [PATCH] Use correct command on mandrake --- net/redhat-linux-lib.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/redhat-linux-lib.pl b/net/redhat-linux-lib.pl index 40b123dbd..8980fee56 100755 --- a/net/redhat-linux-lib.pl +++ b/net/redhat-linux-lib.pl @@ -758,7 +758,12 @@ return $rv; # Apply the interface and routing settings sub apply_network { -&system_logged("(cd / ; /etc/init.d/network stop ; /etc/init.d/network start) >/dev/null 2>&1"); +if ($gconfig{'os_type'} eq 'mandrake-linux') { + &system_logged("(cd / ; service network stop ; service network start) >/dev/null 2>&1"); + } +else { + &system_logged("(cd / ; /etc/init.d/network stop ; /etc/init.d/network start) >/dev/null 2>&1"); + } } # apply_interface(&iface)