diff --git a/qubes-rpc/prepare-suspend b/qubes-rpc/prepare-suspend index bf22344..8b89268 100755 --- a/qubes-rpc/prepare-suspend +++ b/qubes-rpc/prepare-suspend @@ -5,10 +5,10 @@ action=$1 MODULES_BLACKLIST="" if [ -r /etc/qubes-suspend-module-blacklist ]; then - MODULES_BLACKLIST="$MODULES_BLACKLIST `cat /etc/qubes-suspend-module-blacklist`" + MODULES_BLACKLIST="$MODULES_BLACKLIST `grep -v '^#' /etc/qubes-suspend-module-blacklist`" fi if [ -r /rw/config/suspend-module-blacklist ]; then - MODULES_BLACKLIST="$MODULES_BLACKLIST `cat /rw/config/suspend-module-blacklist`" + MODULES_BLACKLIST="$MODULES_BLACKLIST `grep -v '^#' /rw/config/suspend-module-blacklist`" fi if [ x"$action" = x"suspend" ]; then