[Armadeus-commitlog] armadeus branch, master, updated. armadeus-5.2-183-g7da5a62
Brought to you by:
sszy
|
From: jorasse <jo...@us...> - 2013-03-06 09:28:08
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 7da5a6270e0c98faa0a698a3377bac17799bf899 (commit)
from a88c71f30cc2f9bda01ab98370d053dd911a5c43 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7da5a6270e0c98faa0a698a3377bac17799bf899
Author: Eric Jarrige <eri...@ar...>
Date: Wed Mar 6 10:32:00 2013 +0100
[ROOTFS] update wpa-cli script to avoid multiple instance of udhcpc deamon
-----------------------------------------------------------------------
Summary of changes:
.../etc/wpa_supplicant/wpa_cli-action.sh | 31 ++++++++++++++-----
1 files changed, 23 insertions(+), 8 deletions(-)
diff --git a/buildroot/target/device/armadeus/rootfs/target_skeleton/etc/wpa_supplicant/wpa_cli-action.sh b/buildroot/target/device/armadeus/rootfs/target_skeleton/etc/wpa_supplicant/wpa_cli-action.sh
index 8de41ab..f12849b 100755
--- a/buildroot/target/device/armadeus/rootfs/target_skeleton/etc/wpa_supplicant/wpa_cli-action.sh
+++ b/buildroot/target/device/armadeus/rootfs/target_skeleton/etc/wpa_supplicant/wpa_cli-action.sh
@@ -1,9 +1,24 @@
-#!/bin/sh
-#
-case $2 in
-CONNECTED)
- udhcpc -qR -i $1 > /dev/null
- udhcpc -i $1 > /dev/null
-;;
-esac
+#!/bin/sh
+export PIDFILE=/var/run/udhcpc/${1}.pid
+dhcp_lease()(
+[ -e $PIDFILE ] && ( kill `cat $PIDFILE` ; rm $PIDFILE ; )
+mkdir -p `dirname $PIDFILE`
+udhcpc -i $1 -h `hostname` -p $PIDFILE -b
+)
+case $2 in
+CONNECTED)
+dhcp_lease $1
+;;
+DISCONNECTED)
+[ -e $PIDFILE ] && ( kill `cat $PIDFILE` ; rm $PIDFILE ; )
+wpa_cli -i $1Â scan
+;;
+stop)
+wpa_cli -i $1 disconnect
+wpa_cli -i $1 terminate
+;;
+*)
+echo "Use this script as a wpa_cli action script or $0 iface1 stop to leave iface1 ready for manual configuration"
+;;
+esac
hooks/post-receive
--
armadeus
|