Skip to content

Commit

Permalink
prepare-suspend: do not disable virtual interfaces before suspend
Browse files Browse the repository at this point in the history
There is no need to disable virtual (dummy) interfaces before suspend,
it matters only for physical ones. Especially, do not de-configure dummy
eth1 used by Whonix, as there is nothing to turn it back on after
resume.

QubesOS/qubes-issues#2044
QubesOS/qubes-issues#7404

(cherry picked from commit ce8bfa0)
  • Loading branch information
marmarek committed Nov 29, 2022
1 parent 8583614 commit 9bed013
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qubes-rpc/prepare-suspend
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ if [ "$action" = "suspend" ]; then
if [ "$intf" = "lo" ] || [[ "$intf" = "vif"* ]]; then
continue
fi
if ! [ -e "/sys/class/net/$intf/device" ]; then
continue
fi
if [ "$(cat "/sys/class/net/$intf/device/devtype" 2>/dev/null)" = "vif" ]; then
continue
fi
Expand Down

0 comments on commit 9bed013

Please sign in to comment.