Skip to main content

Thread: Running sudo shellscript on boot


i have broadcom wireless adapter in laptop, , drivers linux don't work default. tried sticky on broadcom devices, still didn't work.

http://www.broadcom.com/support/802.11/linux_sta.php
followed instructions , got working fine, except doesn't start upon boot each time. need use command:
code:
sudo insmod ~/.wless/wl.ko
(yes, moved directory ~/.wless).

basically, looking way either:
a) insert module permenantly
b) execute command upon startup

@ moment, have shellscript put in init.d. shellscript runs (i tried command mkdir ~/test , worked) rcconf, command doesn't work. here command made. shellscript works fine user session, on startup, doesn't appear work.
code:
echo "mypassword" | sudo -s insmod ~/.wless/wl.ko
but before then, want working (or go method a). feeling problem i'm giving sudo password in stdin (-s takes stdin), works fine in user session, when booting, has different thing required sudo or that.

, yes, when finish change file permissions 711, , make owner root (which should r/w/x root, x else)

put script startup applications , point command box script

p.s. brofist on i5 2500k overclocked


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Running sudo shellscript on boot


Ubuntu

Comments