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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-30-2005, 07:55 AM
|
#1
|
Member
Registered: Jun 2003
Posts: 45
Rep:
|
where to put this code?
I need to get cardbus working on an hp zv5000.... I read you need to use this code, but I have a debian install and no rc.local file. where does it go??
Code:
[~] > cat etc/rc.local
# Speed up the disk already!
/sbin/hdparm -c 1 -d 1 /dev/hda
# Flip the bits for cardbus to work
setpci -s 0:a.0 SUBORDINATE_BUS=0A
Thanks for any help, would be greatly appreciated.
|
|
|
05-30-2005, 09:10 AM
|
#3
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
It depends on the distribution, but I'd say: at the end of /etc/rc.d/rc.local
Yves.
|
|
|
05-30-2005, 09:14 AM
|
#4
|
Member
Registered: Jun 2003
Posts: 45
Original Poster
Rep:
|
Quote:
Originally posted by theYinYeti
It depends on the distribution, but I'd say: at the end of /etc/rc.d/rc.local
Yves.
|
As I said though, my Debian install has no rc.local.
Here to quote from the link I posted:
Quote:
In many distributions you can add commands to run certain programs at the end of the boot process after all system services have been started into the /etc/rc.d/rc.local file, however there is no such file in a Debian system. Here is the way to accomplish the same thing the debian way:
|
Last edited by xoros; 05-30-2005 at 09:16 AM.
|
|
|
05-30-2005, 09:16 AM
|
#5
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
Yes, but (I don't know Debian) often, when a file is absent, creating it is enough, because the caller script has code like this:
if [ -x /path/to/child ]; then . /path/to/child; fi
As I said, though, I don't know Debian...
Yves.
|
|
|
05-30-2005, 09:19 AM
|
#6
|
Member
Registered: Jun 2003
Posts: 45
Original Poster
Rep:
|
Just nevermind then I will try what it says in the link. Just curious if there is anyone here with Debian experience.
|
|
|
05-30-2005, 09:56 AM
|
#7
|
Member
Registered: Jun 2003
Posts: 45
Original Poster
Rep:
|
Well it didn't work. I got the whole 'local' file set up, but I keep seeing under lspci -vv:
0000:02:04 1 Cardbus bridge Texas Instruments: unknown device ac54 (rev 01)
|
|
|
05-30-2005, 06:30 PM
|
#8
|
Member
Registered: Mar 2004
Distribution: debian testing/unstable, devuan, raspberrypi OS
Posts: 68
Rep:
|
Try putting the script in /etc/rcS.d, prefaced with an "S" followed by a number.
Example: /etc/rcS.d/S20your_script
Btw, Debian doesn't use rc.local. It uses rcS.d instead for all global startup scripts.
HTH,
Durand
|
|
|
05-30-2005, 07:49 PM
|
#9
|
Member
Registered: Jun 2003
Posts: 45
Original Poster
Rep:
|
Quote:
Originally posted by titetanium
Try putting the script in /etc/rcS.d, prefaced with an "S" followed by a number.
Example: /etc/rcS.d/S20your_script
Btw, Debian doesn't use rc.local. It uses rcS.d instead for all global startup scripts.
HTH,
Durand
|
After creating file... then:
update-rcS.d S20your_script defaults 80 ?
or just put the script in there?
Thanks.
Last edited by xoros; 05-30-2005 at 08:02 PM.
|
|
|
05-30-2005, 08:16 PM
|
#10
|
Member
Registered: Mar 2004
Distribution: debian testing/unstable, devuan, raspberrypi OS
Posts: 68
Rep:
|
Actually, you could create the script and then copy it to /etc/init.d, then cd to rcS.d.
Next make a symlink
Code:
ln -s ../init.d/yourscript S20yourscript
.
Reboot to see if it takes effect. You might have to adjust the starting number, the higher it is, the earlier it starts.
You could also alternatively use the update-rc.d command, but first the script needs to be located in /etc/init.d
for that command to create the symlinks for you.
P.S. I suggested 20 because most programs start with that number, but you can make it start earlier or later if
you wish, depending on how fast you want your system to boot.
HTH,
Durand
|
|
|
05-30-2005, 09:34 PM
|
#11
|
Member
Registered: Jun 2003
Posts: 45
Original Poster
Rep:
|
I read that rcS.d scripts get executed first so probably better to put it in there first?
I am not sure now how to de-link the file I made in /etc/init.d/ (I used update-rc.d to link it)
|
|
|
All times are GMT -5. The time now is 02:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|