slackware rc.local probs
I'm sure that this is going to be an easy one for the people in the know but its getting late at night where I am, so I'm going to admit defeat.
I need to start my firewall with the script rc.firewall and then get my adsl modem to run ( speedtouch rev 4 by the way, with painless installation!) I can get rc.local to run the first script but I think it the just finishes rather than going on to the next, Does anyone know where I'm going wrong? heres the script #!/bin/sh # #/etc/rc.d/rc.local: Local system initialization script. # # Put any local setup commands in here: if [ -x /etc/rc.d/kmyfirewall ] ; then . /etc/rc.d/kmyfirewall fi if [ -x /etc/rc.d/rc.modem ] ; then . /etc/rc.d/rc.modem fi Thanks for any help J |
It should be working as long as /etc/rc.d/kmyfirewall and /etc/rc.d/rc.modem have execution permissions.
|
both scripts on there own work absolutely fine. Just when booting up it will run the firewall script but then doesn't go on to run the modem flashing script but goes straight to login.
|
Quote:
The . means "this directory" so rather than looking in /etc/rc.d, the program is looking in /etc/rc.d/etc/rc.d, which almost certainly doesn't exist. |
All times are GMT -5. The time now is 07:44 PM. |