Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/385'
Browse files Browse the repository at this point in the history
* origin/pr/385:
  prepare-suspend: do not disable virtual interfaces before suspend
  prepare-suspend: typo fix
  • Loading branch information
marmarek committed Jul 27, 2022
2 parents 10c90ee + ce8bfa0 commit ac42e17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qubes-rpc/prepare-suspend
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ if [ "$action" = "suspend" ]; then
if [ "$intf" = "lo" ] || [[ "$intf" = "vif"* ]]; then
continue
fi
if [ "$(cat "/sys/class/net/$intf/device/devtype" 2>/dev/null$)" = "vif" ]; then
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
ip link set "$intf" down
Expand Down

0 comments on commit ac42e17

Please sign in to comment.