slitaz-boot-scripts view etc/init.d/wpa_action.sh @ rev 247

Fixed pankso rev 238 patch. We needed udevadm trigger after tazhw init is used. Thats why virtualbox mouse didn't work.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Mar 28 08:53:40 2011 +0000 (2011-03-28)
parents 7512d6d48538
children 6c2d6362887d
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