slitaz-boot-scripts annotate etc/init.d/wpa_action.sh @ rev 462

init: busybox may need /usr/lib/libstd++.so (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 05 19:36:30 2020 +0000 (2020-07-05)
parents 6c2d6362887d
children
rev   line source
jozee@188 1 #!/bin/sh
jozee@188 2 INTERFACE=$1
gokhlayeh@241 3
jozee@188 4 # For a dynamic IP with DHCP.
jozee@188 5 if [ "$2" = "CONNECTED" ]; then
pascal@400 6 [ -f /var/run/udhcpc.$INTERFACE.pid ] && killall udhcpc
jozee@188 7 /sbin/udhcpc -b -i $INTERFACE -p /var/run/udhcpc.$INTERFACE.pid
jozee@188 8 elif [ "$2" = "DISCONNECTED" ]; then
al@393 9 /sbin/udhcpc -b -i $INTERFACE -p /var/run/udhcpc.$INTERFACE.pid
jozee@188 10 fi
jozee@188 11