summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2008-03-15 21:25:04 +0100
committerThomas Bächler <thomas@archlinux.org>2008-03-15 21:25:04 +0100
commit14aec191cdfecdaa243f36d24c8e7fa5d990325d (patch)
treee8e84972149c31ad4a87c200d8e46c6b7ca57567 /init
parented27f00e864699c6d517ae88f613a87bbd34c77a (diff)
downloadmkinitcpio-14aec191cdfecdaa243f36d24c8e7fa5d990325d.tar.gz
mkinitcpio-14aec191cdfecdaa243f36d24c8e7fa5d990325d.tar.xz
Use the new -s= option of replace
Diffstat (limited to 'init')
-rw-r--r--init14
1 files changed, 2 insertions, 12 deletions
diff --git a/init b/init
index b8ee065..11b9aa7 100644
--- a/init
+++ b/init
@@ -23,19 +23,9 @@ for cmd in $CMDLINE; do
single) export runlevel="S" ;; #some people use 'single'
#Allow "init=X" to pass-through
init=*) kinit_params="${kinit_params} ${cmd}" ;;
- # replace can cause problems for the following entries
- # These should only be applied to the lefthand side of the expression
- # until we find a fix hardcode the stuff here.
- root=*) export "${cmd}";;
- md=*) export "${cmd}" ;;
- crypto=*) export "${cmd}" ;;
- resume2=*) export "${cmd}" ;;
- ip=*) export "${cmd}" ;;
- nfsaddrs=*) export "${cmd}" ;;
- nfsroot=*) export "${cmd}" ;;
# only export stuff that does work with dash :)
- *=*) cmd="$(replace "${cmd}" '.' '_')"
- cmd="$(replace "${cmd}" '-' '_')"
+ *=*) cmd="$(replace -s= "${cmd}" '.' '_')"
+ cmd="$(replace -s= "${cmd}" '-' '_')"
export "${cmd}"
;;
*) cmd="$(replace "${cmd}" '.' '_')"