summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2006-08-04 13:22:16 +0200
committerThomas Bächler <thomas@archlinux.org>2006-08-04 13:22:16 +0200
commitb81b2b920d300f1cb292fecf96e9d590497607f8 (patch)
treedabd9f0256e0775bbd7344d3997f917f97bc5e3c /init
parente9aa72aef50d72b8bb358cd5ef126d3ce9c64635 (diff)
downloadmkinitcpio-b81b2b920d300f1cb292fecf96e9d590497607f8.tar.gz
mkinitcpio-b81b2b920d300f1cb292fecf96e9d590497607f8.tar.xz
Solved IFS issues
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@139 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'init')
-rw-r--r--init7
1 files changed, 2 insertions, 5 deletions
diff --git a/init b/init
index fb504d7..aa95ae4 100644
--- a/init
+++ b/init
@@ -25,20 +25,17 @@ for cmd in $CMDLINE; do
esac
done
-OLDIFS=$IFS
-IFS=,
if [ "x${disablehooks}" != "x" ]; then
- for d in ${disablehooks}; do
+ for d in $(subs -n ',' ${disablehooks}); do
export "hook_${d}=disabled"
done
fi
if [ "x${disablemodules}" != "x" ]; then
- for d in ${disablemodules}; do
+ for d in $(subs -n ',' ${disablemodules}); do
export "mod_${d}=disabled"
done
fi
-IFS=$OLDIFS
. /config