More, less, etc.
dvdkhlng at gmx.de
Thu Dec 30 12:02:37 EST 2010
>>> seems when we launch 'bash' or 'ash' from gmenu2x, the shell just
>>> don't load the "/etc/profiel".
>> Yes, it also doesn't change to the root user's home directory. I
>> think we need to start 'bash' and 'ash' as login shells.
>> /usr/bin/bash --login
> thanks. David Kuehling.
> applied: http://qi-hw.com/p/openwrt-packages/0529b7d
I think we might have needlessly complicated things.
A more correct solution would be to run gmenu2x from a login shell, then
bash and ash can be started just normally from within gmenu2x
(i.e. without using --login).
To start gmenu2x from a login shell it might be sufficient to change the
first line of /usr/bin/gmenu2x to:
#! /bin/sh --login
I think this is similar to how normal X-windows sessions work.
GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the discussion