suspend: do not disable network frontend devices
This commit is contained in:
parent
0613a58961
commit
e0d2424d5e
@ -19,6 +19,9 @@ if [ x"$action" == x"suspend" ]; then
|
||||
service NetworkManager stop
|
||||
# Force interfaces down, just in case when NM didn't done it
|
||||
for if in `ls /sys/class/net|grep -v "lo\|vif"`; do
|
||||
if [ "`cat /sys/class/net/$if/device/devtype 2>/dev/null`" == "vif" ]; then
|
||||
continue
|
||||
fi
|
||||
ip l s $if down
|
||||
done
|
||||
LOADED_MODULES=""
|
||||
|
Loading…
Reference in New Issue
Block a user