diff options
author | Thomas Bächler <thomas@archlinux.org> | 2008-03-15 21:25:04 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2008-03-15 21:25:04 +0100 |
commit | 14aec191cdfecdaa243f36d24c8e7fa5d990325d (patch) | |
tree | e8e84972149c31ad4a87c200d8e46c6b7ca57567 /init | |
parent | ed27f00e864699c6d517ae88f613a87bbd34c77a (diff) | |
download | mkinitcpio-14aec191cdfecdaa243f36d24c8e7fa5d990325d.tar.gz mkinitcpio-14aec191cdfecdaa243f36d24c8e7fa5d990325d.tar.xz |
Use the new -s= option of replace
Diffstat (limited to 'init')
-rw-r--r-- | init | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -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}" '.' '_')" |