Hi all.
I need to <sudo modprobe ndiswrapper> to start my usb wifi adapter after each reboot it then works perfectly!
Any idea if I can write some sort of boot script to do this automatically?
Hi all.
I need to <sudo modprobe ndiswrapper> to start my usb wifi adapter after each reboot it then works perfectly!
Any idea if I can write some sort of boot script to do this automatically?
In the file you will see something like this...Code:gksudo gedit /etc/rc.local
just put any commands you want executed at startup before exit 0, and it should run with full root privileges and everything.#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
exit 0
Thats probably what you want#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo modprobe ndiswrapper
exit 0
Last edited by Perfect Storm; August 15th, 2009 at 06:11 AM. Reason: changed sudo to gksudo <= gui related
You can. Here is a very good guide on what runlevels you can place your startup scripts.
http://linux.com/news/enterprise/sys...nd-rcd-scripts
Happy geeks are effective geeks!
AMD Athlon II X2 250 (3.0ghz), Gigabyte GA-MA770T-UD3P, 3GB Crucial DDR3-1066Mhz RAM, XFX ATI RadeonHD 5750 1GB GDDR5
Thanks Finalfantasykid just tried and it works perfectly.
and Firestorm4 thanks for the link.
I've spent so many years behind WINDOWS this really is a breath of fresh air!!
Ubuntu now uses upstart and as such runlevels are somewhat outdated.
http://lwn.net/Articles/202779/
Last edited by bodhi.zazen; August 15th, 2009 at 12:30 AM.
There are two mistakes one can make along the road to truth...not going all the way, and not starting.
--Prince Gautama Siddharta
#ubuntuforums web interface
Bookmarks