Results 1 to 2 of 2
hello
i need to know exactly how to write a script that will during bootup with root access run the following
ifconfig eth0 up
iwconfig eth0 key xxxxxxxxxxxxx
dhclient eth0
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-11-2005 #1Just Joined!
- Join Date
- Feb 2005
- Posts
- 2
script to setup eth0 at bootup mandrake 10.1
hello
i need to know exactly how to write a script that will during bootup with root access run the following
ifconfig eth0 up
iwconfig eth0 key xxxxxxxxxxxxx
dhclient eth0
i need to know how to write the script exactly and also how to call it at bootup.
- 02-11-2005 #2
The script would be:
Let's say you name this "wireless". Now issue the command:Code:#!/bin/bash ifconfig eth0 up iwconfig eth0 key xxxxxxxxxxxxxx dhclient eth0
You'll want to put this in /etc/rc5/d, as runlevel 5 is the mdk default:Code:chmod +x wireless
reboot, and it should workCode:cp wireless /etc/rc5./
-lakerdonald


Reply With Quote
