LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   updated bios on dell inspiron 1100 and got X patch, but... (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/updated-bios-on-dell-inspiron-1100-and-got-x-patch-but-129182/)

foustware 12-26-2003 11:36 PM

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.

tokkee 12-27-2003 10:40 AM

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

foustware 12-27-2003 10:28 PM

ok tokkee, i'll try it now. whatever the outcome i'll let you know. thanks for the response!

foustware 12-27-2003 11:04 PM

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!


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