ash -l option?

Natanael Copa natanael.copa at gmail.com
Wed Jul 11 07:02:05 UTC 2007


Hi,

While trying to get my busybox/uClibc based distro run as a vserver i
got the problem that there is no -l option to /bin/sh. I solved it by
patching vserver scripts:

--- data.orig/usr/lib/util-vserver/vserver.functions    2007-07-05 15:41:45 +0000
+++ data/usr/lib/util-vserver/vserver.functions 2007-07-10 22:54:08 +0000
@@ -207,7 +207,7 @@
     
     test -n "$ENTER_SHELL" || {
        local i
-       for i in "/bin/bash -login" "/bin/sh -l" /bin/csh; do
+       for i in "/bin/bash -login" "/bin/ash --login" "/bin/sh -l" /bin/csh; do
            set -- $i
            test -x "$vdir/vdir/$1" || continue
            ENTER_SHELL=( "$@" )


I was wondering if there is intereste for a --login short option -l in
busybox so patching util-vserver is not needed for busybox vservers?

Natanael Copa




More information about the busybox mailing list