Add support for comments in qubes-suspend-module-blacklist

This commit is contained in:
Marek Marczykowski-Górecki 2015-03-18 00:30:57 +01:00
parent 9a7b161c37
commit 58da94acad

View File

@ -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