-
how do I write a script?
I'm trying to get my wireless up and running as per: the instructions at http://www.linuxquestions.org/questions/answers/405.
I came across this step:
Finally, you need to create a script, name it whatever you want, I named mine: wlan.
Add to this script the following:
echo "Loading ndiswrapper..."
modprobe ndiswrapper
....
...
..
.
echo "Activating UP address via DHCP..."
dhclient wlan0
Make it executable: chmod 755, then add it to your rc.local, and your set to go. Every time the computer boots up, your wireless lan should come up ready to go.
I figure I can just copy/paste the stuff the belongs in the script, but I have no idea where i should paste it!
and I also do not understand the last line
so, where do I go from here?
-
Re: how do I write a script?
![Quote](images/misc/quote_icon.png)
Originally Posted by
jehan60188
I'm trying to get my wireless up and running as per: the instructions at
http://www.linuxquestions.org/questions/answers/405.
I came across this step:
Finally, you need to create a script, name it whatever you want, I named mine: wlan.
Add to this script the following:
echo "Loading ndiswrapper..."
modprobe ndiswrapper
....
...
..
.
echo "Activating UP address via DHCP..."
dhclient wlan0
Make it executable: chmod 755, then add it to your rc.local, and your set to go. Every time the computer boots up, your wireless lan should come up ready to go.
I figure I can just copy/paste the stuff the belongs in the script, but I have no idea where i should paste it!
and I also do not understand the last line
so, where do I go from here?
did youu try using the ndiswrapper script in the networking menu? ... it makes life a lot easier but to answer your question
ok a script is basically a set of instructions. So all you need to do is open up kwrite or kate (same as a notepad) type in what ever the forum says and then save it.
now you need to give it permissions to exectute so just do
# chmod 755 filename (make sure u are in the directory where the file is)
and finally add this in your /etc/init.d/rc.local file. Do you need more help?
Similar Threads
-
By alex52 in forum General Support
Replies: 0
Last Post: 02-01-2005, 08:08 AM
-
By bob58 in forum General Support
Replies: 2
Last Post: 11-26-2004, 07:25 AM
-
By fsiviero in forum Ideas
Replies: 0
Last Post: 09-22-2003, 08:35 PM
-
By lindros in forum General Support
Replies: 10
Last Post: 07-24-2003, 08:26 PM
-
By punk000 in forum General Support
Replies: 3
Last Post: 02-26-2003, 07:02 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Vintage Apple IIe 2e iie Personal Computer A2S2064 V1718 *TESTED AND WORKING* picture](/store/img/g/3AUAAOSw84lmF2~V/s-l225/Vintage-Apple-IIe-2e-iie-Personal-Computer-A2S2064.jpg)
Vintage Apple IIe 2e iie Personal Computer A2S2064 V1718 *TESTED AND WORKING*
$175.00
![Vintage Apple A2M2010 Monitor II, Green Phosper CRT picture](/store/img/g/LIMAAOSw1TxmaGy2/s-l225/Vintage-Apple-A2M2010-Monitor-II-Green-Phosper-CRT.jpg)
Vintage Apple A2M2010 Monitor II, Green Phosper CRT
$99.99
![Macintosh Classic M0420 vintage apple computer TURNS ON WORKS picture](/store/img/g/wE0AAOSww6RmhHMp/s-l225/Macintosh-Classic-M0420-vintage-apple-computer-TUR.jpg)
Macintosh Classic M0420 vintage apple computer TURNS ON WORKS
$240.00
![Rare Vintage Apple Macintosh Powerbook 160 9.8](/store/img/g/HAQAAOSwVtdl7boT/s-l225/Rare-Vintage-Apple-Macintosh-Powerbook-160-9-8-Scr.jpg)
Rare Vintage Apple Macintosh Powerbook 160 9.8" Screen Laptop - UNTESTED
$49.99
![Rare Vintage Apple 630-0101 128K/512K Macintosh Logic Motherboard - UNTESTED picture](/store/img/g/lxQAAOSwZUVmiLdO/s-l225/Rare-Vintage-Apple-630-0101-128K-512K-Macintosh-Lo.jpg)
Rare Vintage Apple 630-0101 128K/512K Macintosh Logic Motherboard - UNTESTED
$60.00
![Apple Computer Vintage sheet of 1990s rainbow logo stickers 2 Sticker Sheet picture](/store/img/g/DCIAAOSwsfdmgYEX/s-l225/Apple-Computer-Vintage-sheet-of-1990s-rainbow-logo.jpg)
Apple Computer Vintage sheet of 1990s rainbow logo stickers 2 Sticker Sheet
$4.80
![RARE PROTOTYPE - Vintage Apple Computer Lisa 2/10 - Service & X/ProFile Drive picture](/store/img/g/uz4AAOSwQWFmiKnf/s-l225/RARE-PROTOTYPE-Vintage-Apple-Computer-Lisa-2-10-Se.jpg)
RARE PROTOTYPE - Vintage Apple Computer Lisa 2/10 - Service & X/ProFile Drive
$9500.00
![Vintage 1991 Apple AppleColor RGB Monitor A2M6014, Untested Powers On picture](/store/img/g/4aMAAOSwX51mibNb/s-l225/Vintage-1991-Apple-AppleColor-RGB-Monitor-A2M6014-.jpg)
Vintage 1991 Apple AppleColor RGB Monitor A2M6014, Untested Powers On
$165.00
![Vintage Apple Macintosh 512K / Mouse, Keyboard & Extras + Carry Case / Turns On picture](/store/img/g/mSoAAOSwSVZmaap5/s-l225/Vintage-Apple-Macintosh-512K-Mouse-Keyboard-Extras.jpg)
Vintage Apple Macintosh 512K / Mouse, Keyboard & Extras + Carry Case / Turns On
$260.00
![VINTAGE Macintosh PowerBook 1400cs /117 early apple laptop 1996 - IN BOX READ picture](/store/img/g/glcAAOSwNcJmidG4/s-l225/VINTAGE-Macintosh-PowerBook-1400cs-117-early-apple.jpg)
VINTAGE Macintosh PowerBook 1400cs /117 early apple laptop 1996 - IN BOX READ
$399.99