slitaz-boot-scripts view etc/init.d/wpa_action.sh @ rev 393
network.sh: better handle WEP connections, handle EAP, store Wi-Fi neworks by default; network.conf: migrate to extended format to support EAP arguments, and few more.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Mar 23 02:01:21 2015 +0200 (2015-03-23) |
parents | 68435a9c0843 |
children | 3fd5d62713f9 |
line source
1 #!/bin/sh
2 INTERFACE=$1
4 # For a dynamic IP with DHCP.
5 if [ "$2" = "CONNECTED" ]; then
6 [ -f /var/run/udhcpc.$INTERFACE.pid] && killall udhcpc
7 /sbin/udhcpc -b -i $INTERFACE -p /var/run/udhcpc.$INTERFACE.pid
8 elif [ "$2" = "DISCONNECTED" ]; then
9 /sbin/udhcpc -b -i $INTERFACE -p /var/run/udhcpc.$INTERFACE.pid
10 fi