From 14aec191cdfecdaa243f36d24c8e7fa5d990325d Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Sat, 15 Mar 2008 21:25:04 +0100 Subject: Use the new -s= option of replace --- init | 14 ++------------ 1 file 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}" '.' '_')" -- cgit v1.2.3-24-g4f1b