On Tue, Apr 15, 2008 at 06:40:49PM +0100, James Simmons wrote:

>> Why do you need this change?
>> 
>> Can you provide an example which does not work if this
>> change is reverted?
>
>This fails.
>
>runlevel=$(cat /proc/1/cmdline 2> /dev/null)
>echo $runlevel                                 # init [2]
>runlevel=${runlevel#* [}                       
>
>echo "runlevel '$runlevel'"                    # Should be runlevel '2]'
>                                               # we get runlevel 'init [2]'

Does miscutils/runlevel.c work in principle?
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to