init and init scripts
dj.frost at blueyonder.co.uk
Wed Aug 30 01:06:59 PDT 2006
ive just been experimenting with trying to understand how init scripts
work. .. so i wrote some from scratch.
Now i thought that the scripts would have to work out what the previous
runlevel was (using an exported shell variable) and stop the previous
runlevel, but this doesnt seem to be working. It struck me that the
shell the init script runs in when entering a runlevel wont be the same
shell the init script for the other runlevel runs in so exported
variable wont work, make sense ?
Could someone clarify how the current lfs init scripts detect the
More information about the lfs-support