On SLES, there is no ifup binary in /etc/sysconfig directory. Use the binary /sbin/ifup.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2720 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2009-02-11 16:12:36 +00:00
parent d05271857c
commit f715792ba1

View File

@ -64,7 +64,7 @@ foreach my $num (@nums) {
print FILE "ONBOOT=yes\n" if ( $OS_name eq 'redhat');
print FILE "STARTMODE=auto\n" if ( $OS_name eq 'suse');
close FILE;
runcmd("$dir/ifup $nic");
runcmd("ifup $nic");
system("logger -t xcat 'configiba: successfully configured $nic.'");
} elsif ($PLTFRM eq "AIX") {
#Check whether the icm is available