You are not logged in.
I have a small script I run to initialise my laptop's miniPCI wireless card.
The script uses iwconfig and iwpriv so it has to be run as root.
To date I have been running this script manually by su-ing into root, executing the script (./gigabyte.sh) and logging out of root.
I would like to automate this script so that it runs as part of the init process but I don't know how to do this.
Could someone tell me how to do this, please?
Last edited by Shagbag (2007-05-21 15:19:29)
Offline
add the script to the '/etc/rc.local' file.
Offline
And chmod +x /etc/rc.local
1000
Offline
Thanks. I added it to '/etc/rc.local' and it worked. I didn't need to chmod +x /etc/rc.local though - maybe it's already set up like that? (I don't know).
Anyway, it's fixed. Thanks for your help.
Offline