[arch-general] [PATCH] restrict NETWORK_PERSIST to runlevel 0 and 6

Kurt J. Bosch kjb-temp-2009 at alpenjodel.de
Sun Aug 22 12:13:36 EDT 2010


Am 2010-08-22 17:52, schrieb Florian Pritz:
> On 22.08.2010 17:49, Kurt J. Bosch wrote:
>> Am 2010-08-22 17:40, schrieb Kurt J. Bosch:
>>>    if [[ ${NETWORK_PERSIST,,} = yes&&  $RUNLEVEL == [06] ]] ; then
>>> would look a bit nicer IMHO :)
>>>
>> ... and RUNLEVEL PREVLEVEL should already be marked for export.
>
> Well I haven't tested that, but I can't access them from my X or tty
> session so I guess they aren't.
>
That is because you try from within a login shell which sets up its own 
environment AFAIK. I wrote the scripts for fbsplash and fbsplash-extras 
which use these variables with stock initscripts.




More information about the arch-general mailing list