SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I think that I am having problems with my /etc/rc.d/rc.local. I have put adsl-start in the script. It did work until Monday when I updated my box to the new packages for current. I inadvertently replaced a few conf by nothing affecting the network configuration, or so I thought. Upon a reboot the adsl connection did not come up automatically. But if I run /etc/rc.d/rc.local start after boot it comes up fine. I tried changing the permissions by chmod +x /etc/rc.d/rc.local. What should the file permissions be set at to bring up the script at start up? I boot into run level 4. Thanks.
Originally posted by justin_p I think that I am having problems with my /etc/rc.d/rc.local. I have put adsl-start in the script. It did work until Monday when I updated my box to the new packages for current. I inadvertently replaced a few conf by nothing affecting the network configuration, or so I thought. Upon a reboot the adsl connection did not come up automatically. But if I run /etc/rc.d/rc.local start after boot it comes up fine. I tried changing the permissions by chmod +x /etc/rc.d/rc.local. What should the file permissions be set at to bring up the script at start up? I boot into run level 4. Thanks.
Make sure the rc.local script is being excecuted or called upon by your rc.M script.. preferrably at the end of the script..
rc.local is definitely exectuable. I am just not sure why it is not running on boot. My adsl-start file look just like the one in the link. I am going to reboot with those options you stated for the rc.local. My report will follow.
Aftering adding the lines:
echo "Starting ADSL Services... "
CONFIG=/etc/ppp/pppoe.conf
/usr/sbin/adsl-status $CONFIG > /dev/null 2>&1
to the rc.local I am able to see the "Starting ADSL Services...." prior to the start of X. But I got the same result. I run rc.local manually, no problem.
Usualy there is the only difference between running rc.local from multiuser startup script rc.M and from interactive shell in shell startup scripts so looking into them may help (depends on used shell: /etc/profile, ~/.profile, ~/.bash_profile, ~/.bash_login, ~/.cshrc, ~/.login, ...). Maybe some environment setting is required ?
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
echo "Starting ADSL Services... "
adsl-start
echo "..Connected"
But during boot it timed out and then displayed the connected part. When is ran the script for the CLI it worked perfectly. Weird. I am kinda at a loss.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.