summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init6
1 files changed, 4 insertions, 2 deletions
diff --git a/init b/init
index 10c4881..b12f269 100644
--- a/init
+++ b/init
@@ -27,13 +27,15 @@ for cmd in $CMDLINE; do
done
if [ "x${disablehooks}" != "x" ]; then
- for d in $(replace -q ${disablehooks} ','); do
+ k="$(replace -q "${disablehooks}" '-' '_')"
+ for d in $(replace "${k}" ','); do
export "hook_${d}=disabled"
done
fi
if [ "x${disablemodules}" != "x" ]; then
- for d in $(replace -q ${disablemodules} ','); do
+ k="$(replace "${disablemodules}" '-' '_')"
+ for d in $(replace "${k}" ','); do
export "mod_${d}=disabled"
done
fi