Laptops :: ??bootlocal.sh??
I have been away for a while and this is how I use to load the sound drivers for my TP600e. This is my bootlocal.sh file. I have tried this with and without sudo. It fails. There is a string of text during boot essentially telling me these are not loading. Goes by to fast. I can load these commands one at a time from a command prompt and it works fine. Is there a different way to do this now?
D
#!/bin/bash
# put other system startup command here
loadkeys us
###Attempt to load sound drivers###
###rmmod sound
sudo insmod sound
sudo insmod ad1848
sudo insmod uart401
sudo insmod cs4232 io=0x530 irq=5 dma=1 dma2=0
You don't need to use "sudo" in bootlocal.sh as it runs as root and you could probably use "modprobe" rather than "insmod" (assuming these drivers are already in dsl) - I don't think either of these is going to fix your problem though...
Yes sudo is redundant here.. but I have experienced that some things in DSL that have worked with insmod that didn't work with modprobe (no idea why, maybe versioning problems).
Perhaps it is because you need to wait for things to register first... or whatnot. Maybe you could add in sleep commands? If you did see some text, you could try to log it... such as adding ` &> /tmp/mylogfile.txt` to a command
Well I'm a bonehead. This morning I woke up at 5:30a and(I hate when that happens). While I was laying there waiting to go back to sleep I thought about this and thought it should be modprobe, those modules probably haven't registered yet. I did not think I needed sudo but used it because it did not work with out it so I gave it a shot. I replaced insmod with modprobe and all is well. Works just like I remembered it working. Now I can once again rock.
I guess I have been using kubuntu to long. My basics are turning to mush. Kubuntu is just to dang easy. Rarely does one have to leave the GUI. DamnSmall looks like it will help me get back to basics.
D
[edit]
Juanito and ^thehatsrule^ thanks for the input. You guys were absolutely right.
original here.