Explorar o código

suspend: do not disable network frontend devices

Marek Marczykowski-Górecki %!s(int64=9) %!d(string=hai) anos
pai
achega
e0d2424d5e
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      qubes-rpc/prepare-suspend

+ 3 - 0
qubes-rpc/prepare-suspend

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