Add support for comments in qubes-suspend-module-blacklist
This commit is contained in:
parent
9a7b161c37
commit
58da94acad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user