[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    variable handling in ash
From:       "Richard Offer" <richard () whitequeen ! com>
Date:       2006-11-26 11:13:59
Message-ID: 8f14de1d0611260313i19146b66s67eb35f02e44b226 () mail ! gmail ! com
[Download RAW message or body]

I have an ash-based /linuxrc, and I can not get it to use the
variables passed on the kernel command line.

If I do an export (or set), I can see all the variables there. If I
try and do an echo of the variable (both the shell built in echo and
busybox's applet) I see nothing.

In fact I can't get it to use any variable - even ones set in the script.

#! /bin/sh
. /config

/busybox mount -n -o remount,rw /

/busybox mount -t proc /proc /proc

export
echo ${ROOTISHD}

/busybox grep ROOTISHD=yes /proc/cmdline
HD=$?

echo ${HD}
export HD=0
echo ${HD}

(all echo statements just echo a newline)

Obviously I'm missing something, but I'm baffled.


richard.

PS This is with 1.1.0
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic