On Monday 06 May 2002 23:14, Bill Parker wrote:
What happens is that while everything runs fine INSIDE of boot.local, I need to have everything execute in runlevel 5, run the commands in boot.local, then have KDE start up (the way it is right now, is that a smbmount is executed BEFORE eth0/lo are brought up, thus the smbmount fails).
(which is what rc.local allows me to do in Caldera). I'm looking for a equivalent on this would be accomplished.
Two options: either create a runlevel script and run your stuff from there, or put this test "$PREVLEVEL" = "N" && [ -x /etc/init.d/rc.local ] && . /etc/init.d/rc.local in /etc/init.d/rc, somewhere after the main runlevel processing. Of course, you could adjust the test on previous run level if you want it to behave differently. I think this mimics the rc.local found on other systems. It will run rc.local on startup, but not if you're going, say, from runlevel 3 to 5 The smbmount thing I think you should put in /etc/fstab. Use fstype smbfs and put username= and password= as options. Option auto will mount it after the network has been started. This will also unmount it before the network is brought down on shutdown. regards Anders