mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 04:10:46 +00:00
fix for bug 4002, configib replaces /etc/sysctl.conf
This commit is contained in:
@ -286,9 +286,9 @@ do
|
||||
|
||||
if [ -f /etc/sysctl.conf ]
|
||||
then
|
||||
TMP1=`sed "/net.ipv4.conf.$nic.arp_filter=1/d" /etc/sysctl.conf 2>&1 1>/dev/null`
|
||||
TMP1=`sed "/net.ipv4.conf.$nic.arp_filter=1/d" /etc/sysctl.conf`
|
||||
echo "$TMP1" > /etc/sysctl.conf
|
||||
TMP2=`sed "/net.ipv4.conf.$nic.arp_ignore=1/d" /etc/sysctl.conf 2>&1 1>/dev/null`
|
||||
TMP2=`sed "/net.ipv4.conf.$nic.arp_ignore=1/d" /etc/sysctl.conf`
|
||||
echo "$TMP2" > /etc/sysctl.conf
|
||||
cfg="net.ipv4.conf.$nic.arp_filter=1"
|
||||
grep "$cfg" /etc/sysctl.conf 2>&1 1>/dev/null
|
||||
|
Reference in New Issue
Block a user