Results 1 to 4 of 4
Ok, im a wifi junkie, thats official, i was wondering, is there a way to make a script, so it does
ifconfig eth1 up
iwconfig eth1 key XXXXXXXX
dhcpcd eth1
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-29-2004 #1Just Joined!
- Join Date
- Sep 2004
- Location
- Tunbridge Wells, England
- Posts
- 24
Creating Scripts for wireless commands
Ok, im a wifi junkie, thats official, i was wondering, is there a way to make a script, so it does
ifconfig eth1 up
iwconfig eth1 key XXXXXXXX
dhcpcd eth1
all by typing a single command, such as wifi or wireless? Ive read about VIM, but it looks pretty archaic. Any ideas?
- 10-29-2004 #2
just create a file called "wireless" and make it contain:
then issue:Code:#!/bin/bash ifconfig eth1 up iwconfig eth1 key 12345678 dhcpcd eth1
and add the directory where it is located to your path, so you can now just enter:Code:chmod 755 wireless
and it will execute.Code:wireless
-lakerdonald (the other reigning wifi junkie)
- 10-30-2004 #3Just Joined!
- Join Date
- Sep 2004
- Location
- Tunbridge Wells, England
- Posts
- 24
do i create the file in /bin/bash? and, when i create the file, do i link it to apllication, or textfile?
- 10-30-2004 #4
no
put it wherever you wish
and what to you mean link it to application or text file?


Reply With Quote
