Welcome, Guest. Please login or register.
April 19, 2014, 03:53:04 AM
Home Help Search Calendar Login Register
Show unread posts since last visit.
News: Let Pardus-Anka become #1: Pardus-Anka Bug ReportPardus-Anka World Google+ | The Pardus wiki  | Visit Pardus-Anka official website  | Register as forum member?  Email the moderator!

+  Pardus Worldforum
|-+  Assistance
| |-+  Configuring Pardus
| | |-+  script for wi-fi
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: script for wi-fi  (Read 789 times)
Sandro
Pardus fellow craft
**
Posts: 53



View Profile
« on: January 22, 2012, 23:47:12 PM »

I have manually write like super user this commands:

Code:
iwconfig wlan0 mode Ad-hoc
iwconfig wlan0 essid pardus
ifconfig wlan0 192.168.0.1
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
ifconfig wlan0 up

They setting my wifi usb key. I would like transform this commands in a script.  Where can I put this script in pardus 2001.1? The howto that i have read say /etc/network/interfaces, but in pardus there is not this file.
Logged
Sandro
Pardus fellow craft
**
Posts: 53



View Profile
« Reply #1 on: February 21, 2012, 19:47:03 PM »

I have solved the problem to put the command in:
/etc/conf.d/local.start
Logged
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #2 on: February 21, 2012, 20:42:45 PM »

Thanks for the info.
Logged
Sandro
Pardus fellow craft
**
Posts: 53



View Profile
« Reply #3 on: February 22, 2012, 23:15:25 PM »

Thanks for the info.

All fares please!
But there is a little problem, if the system is suspended in RAM then the commands must be repeated.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!