From 58da94acad49bb47f4e0797c2cff114d5ad6ea92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 18 Mar 2015 00:30:57 +0100 Subject: [PATCH] Add support for comments in qubes-suspend-module-blacklist --- qubes-rpc/prepare-suspend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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