We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 880a2ef commit 1171f78Copy full SHA for 1171f78
1 file changed
etc/rc.d/init.d/network
@@ -240,6 +240,7 @@ stop)
240
remaining="$remaining $i"
241
done
242
243
+ bondlist=`cat /proc/net/bonding/* 2> /dev/null | grep "Slave Inter" | awk '{print $3}'`
244
for i in $vpninterfaces $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
245
unset DEVICE TYPE
246
(. ./ifcfg-$i
@@ -248,6 +249,11 @@ stop)
248
249
if ! check_device_down $DEVICE; then
250
action $"Shutting down interface $i: " ./ifdown $i boot
251
[ $? -ne 0 ] && rc=1
252
+ else
253
+ if ! echo "$bondlist" | grep -qw $DEVICE ; then
254
+ action $"Shutting down non-UP interface $i: " ./ifdown $i boot
255
+ logger $"Running ifdown on non-UP interface $i"
256
+ fi
257
fi
258
)
259
0 commit comments