suspend: do not disable network frontend devices

This commit is contained in:
Marek Marczykowski-Górecki 2014-10-27 15:07:06 +01:00
parent 0613a58961
commit e0d2424d5e

View File

@ -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=""