From e0d2424d5eed621dcdaf6694652d4166a435f35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 27 Oct 2014 15:07:06 +0100 Subject: [PATCH] suspend: do not disable network frontend devices --- qubes-rpc/prepare-suspend | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubes-rpc/prepare-suspend b/qubes-rpc/prepare-suspend index 8e8e738..975e06f 100755 --- a/qubes-rpc/prepare-suspend +++ b/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=""