On 10/30/07, Rob Ubuntu Linux <[EMAIL PROTECTED]> wrote: > On 10/30/07, Scott James Remnant <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-10-30 at 13:37 +0100, Wolf Paul wrote:
> Write a script to chain load init(8) on boot, with same params and > environment : Actually it's even simpler than that thanks to /proc/cmdline. cat /proc/cmdline splash=silent root=UUID=800f74e7-e7b0-4c05-8cb0-f3ea7ce980ae ro quiet splash LOCATION=HOME So you can simply use a filter like sed(1), awk(1), or perl(1) to set it. [EMAIL PROTECTED]:~$ [ -f /proc/cmdline ] && export LOCATION=`cat /proc/cmdline | sed -e 's/.*LOCATION=//' -e 's/ .*//'` [EMAIL PROTECTED]:~$ printenv LOCATION HOME So ignore my previous suggestion. -- upstart-devel mailing list upstart-devel@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel