LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   slackware rc.local probs (https://www.linuxquestions.org/questions/linux-newbie-8/slackware-rc-local-probs-228287/)

Jamesn 09-08-2004 04:00 PM

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

serz 09-08-2004 04:16 PM

It should be working as long as /etc/rc.d/kmyfirewall and /etc/rc.d/rc.modem have execution permissions.

Jamesn 09-08-2004 04:21 PM

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.

Hangdog42 09-08-2004 05:27 PM

Quote:

. /etc/rc.d/kmyfirewall
I think that you're confusing it with the leading .

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.