LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-26-2003, 11:36 PM   #1
foustware
Member
 
Registered: Dec 2003
Posts: 42

Rep: Reputation: 15
Question updated bios on dell inspiron 1100 and got X patch, but...


i use suse 9 and i've recently updated my dell inspiron's faulty A06 bios to the latest A26. i already new this would break X as runlevel 5 started, so i downloaded the new patch from geocities web page and installed it as root from console. it does the job. 10 mb of memory gets allocated for X. the only thing is i can't get it to start automatically at start up. i always have to type

init 3
/sbin/845patch 10000
init 5

to run X.i know the instructions on the web page say to type

echo "/sbin/845patch 10000">>/etc/rc.d/rc.sysinit

for redhat /mandrake. since suse uses rpms, i assumed it was based on redhat so i tried that but when i reboot it doesn't work. i noticed that suse left an rc.dREADME file in /etc/, so i read it.
it says that to comply with the linux standard base they moved start up scripts to /etc/init.d.
when i went back to the geocities web page to try and find an answer, i noticed the commands to start the patch automatically at boot for debian based distros used the same directories as suse's with:

echo "/sbin/845patch 10000">/etc/init.d/845patch
chmod +x /etc/init.d/845patch
ln -s /etc/init.d/845patch /etc/rcS.d/S20-845patch

i tried this and didn't get any errors until the 3rd line. the error said that S20-845patch didn't exist.
i started the patch manually and ran X. i opened the file browser and noticed there was an /rcS.d/S20single script. should i retry linking using this file or do i need to type something totally different all together for suse 9? everything works as far as the patch itself goes. and if i start X after manually running the patch, i can actually see my battery status for once thanks to the bios update. i'm just tired of typing that stuff just get a graphical log in each time. if anyone has been through this before and can give advice that would be great. thanks.

Last edited by foustware; 12-26-2003 at 11:39 PM.
 
Old 12-27-2003, 10:40 AM   #2
tokkee
Member
 
Registered: Dec 2003
Distribution: Debian, OpenBSD
Posts: 46

Rep: Reputation: 15
try using ln -s /etc/init.d/845patch /etc/init.d/rc5.d/S20-845patch instead. (NOTE: use init.d/rc5.d (yes, this is number five) instead of rcS.d)

some basic information about what all this really means (so you can help yourself, if it's still not gonna work): every runlevel has a subdirectory called rcX.d (where X is 0 thru 6 (runlevels 0 thru 6!!) or S (single user mode)). any files in these directories starting with a capital "S" contain a script to start a specific service when entering the runlevel specified by the name of the subdirectory that contains the file (e.g. if there is a file rc2.d/S20apache the apache webserver will be started when entering runlevel 2 (given that the file really contains the apache script - if you want you can rename the file - as long as "S20" remains the same, it will still work the same way)) - the number after the "S" just indicates a priority. well, i hope i did not confuse too much ;) (for more information have a look at 'man init'!).

so, since you want your script to be executed when switching to runlevel 5, you have to look for the subdirectory rc5.d. you should either find it in /etc or in /etc/init.d. if you found it executing the script

ln -s /etc/init.d/845patch <path to rc5.d>/rc5.d/S20-845patch

will create a symbolic link in the rc5.d subdirectory pointing to the actual script saved in /etc/init.d/845patch and the script should be executed any time you enter runlevel 5
 
Old 12-27-2003, 10:28 PM   #3
foustware
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
ok tokkee, i'll try it now. whatever the outcome i'll let you know. thanks for the response!
 
Old 12-27-2003, 11:04 PM   #4
foustware
Member
 
Registered: Dec 2003
Posts: 42

Original Poster
Rep: Reputation: 15
tokkee it worked! that's awsome. i think i understand how these runlevel directories work now. since my system has been configured to my satisfaction, for now anyway, i can finally learn more about scripting and programming on linux. thanks alot!

Last edited by foustware; 12-27-2003 at 11:08 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Debian Woody on an Inspiron 1100; BIOS not found pdq123 Linux - Laptop and Netbook 1 03-20-2005 12:24 AM
Dell Inspiron 1100 with A22 Bios str1ker84 Linux - Laptop and Netbook 0 03-18-2004 08:11 AM
ACPI Patch for BIOS 25 Dell Inspiron 1100 w/ Fedora Core 1.0 cddesjar Linux - Laptop and Netbook 4 02-19-2004 07:18 PM
ACPI Patch for BIOS 25 Dell Inspiron 1100 w/ Fedora Core 1.0 cddesjar Linux - Laptop and Netbook 0 01-22-2004 09:36 PM
Help with Dell TrueMobile 1100 wlan adapter on Dell inspiron 8200 with suse8.1 simpson75us Linux - Laptop and Netbook 0 08-11-2003 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10:16 PM.

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