summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}" '.' '_')"