summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-08-11 11:25:15 +0200
committerTobias Powalowski <tpowa@archlinux.org>2006-08-11 11:25:15 +0200
commit3c903b6f507c0570938f9a9c7ee6f0f619d03bd5 (patch)
tree7211f638aa3633da4bffbaf4972a0e9d5d53ac74 /init
parentbda5ebb687bb96242120203f7b174d89cbd810d8 (diff)
downloadmkinitcpio-3c903b6f507c0570938f9a9c7ee6f0f619d03bd5.tar.gz
mkinitcpio-3c903b6f507c0570938f9a9c7ee6f0f619d03bd5.tar.xz
'fixed blacklisting support'
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@159 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'init')
-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