LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 04-10-2004, 02:40 PM   #1
bugsbunny
Member
 
Registered: Jan 2003
Location: London/UK
Distribution: Slackware 9.1
Posts: 111

Rep: Reputation: 15
Script won't run at boot


I have a script which i use to dial my adsl speedtouch modem. It is called speedial. I currently have it in /etc/rc.d/speedial. I expect it to be executed at bootime but it doesn't. However at the prompt when i dial /etc/rc.d/speedial it runs perfectly.

What is wrong here?
 
Old 04-10-2004, 04:50 PM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
There is a directory /etc/rc.d/rc5.d (or /etc/rc5.d - I don't use know where slackware puts it) and init runs every script in that directory that starts with an S character in alphabetical order with the parameter start. You need to create a symlink from /etc/rc.d/speedial to /etc/rc.d/rc5.d/S99speedial. This will cause the script to be run at boot. The 99 is used to order the script to be run last (unless a S99tftp or similar exists) and you can use another number if you wish.
 
Old 04-11-2004, 04:36 AM   #3
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
... however slackware uses BSD style init instead of SystemV, so there is no rc4.d directory (or in fact any directory at all under rc.d). In principle the script should get run if it has execute (+x) bit set. You could ofcourse run your script from rc.local too...
 
Old 04-11-2004, 10:24 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
The proper Slack way would be to run it from rc.local.
 
Old 04-12-2004, 04:53 AM   #5
bugsbunny
Member
 
Registered: Jan 2003
Location: London/UK
Distribution: Slackware 9.1
Posts: 111

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks all especially gnashley and alienDog. It works now> I copied the script into rc.local and it now boots at start. By the way where have you guys been for the past week when i need your help

Thanks a lot
 
Old 04-12-2004, 09:55 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
BTW most scripts located in /etc/rc.d only run when called.
init automatically runs rc.S (which calls rc.modules) then rc.M (which calls rc.local).
init level 4 may omit rc.M. there was a post the other day that said so, but I haven't checked yet to see if it's so.
 
Old 04-19-2004, 04:26 PM   #7
portux
Member
 
Registered: Apr 2003
Location: Portugal
Distribution: Slackware 10.1
Posts: 42

Rep: Reputation: 15
http://www.slackware.org/config/init.php

[edit] I was wondering too...[/edit]

Last edited by portux; 04-19-2004 at 05:14 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get script to run on boot Ook Slackware 7 03-05-2005 01:31 AM
Script to run at boot robbow52 Debian 17 09-03-2004 09:04 PM
Getting script to run at boot Andy@DP Linux - Newbie 4 06-05-2004 07:39 AM
Getting a script to run at boot IMNOboist Linux - Software 2 05-10-2004 01:48 AM
Can't get script to run on boot rickenbacherus Linux - General 5 08-21-2003 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration