Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
I got a wirelss connection which requires to be started with the manual "ifconfig/iwconfig" routine. This is boring and waste of time to do every time I have booted my computer.
I'd like the network to start by itself. in /etc/sysconfig/network-scripts there are two scripts, one for eth0 and one for lo. I've tried to use them both as examples, just by replacing some entries which correspond to the wireless wlan0 parameters, but to no success.
During boot, the network fails to start, shown by this; Set encode (8B2A, SET failed on device wlan0, network is down.
What entries would be correct in a script to make it work, and what info do I need to add that is correct regarding the wireless device/network? I've tried with: DEVICE, BOOTPROTO, HWADDR,ONBOOT and DCHP_HOSTNAME.
Thanks for any ideas!
E.
EDIT: Should probably be moved to the networking forum. Sorry
The series of commands you use to get wireless up is what you put in the script after the #! /bin/bash line. You make the script executable and put it someplace where the system can find it at boot. Then you put the full path + scriptname at the bottom of your /etc/rc.local file.
forget this extension stuff. Linux is not Windows.
Use the command:
#chmod 775 script
then put the file in some place at /etc/rc.d (if you're a slackware user) or /etc/init.d (Debian, Redhat, etc... don't forget to build sym links at /etc/rc*.d).
Now every time in which you reboot your box, these commands will be executed.
Simon, I am not a noob in a big sense, just when it comes to making scripts like this. Foresight has the same file system as RedHat if that is to any help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.