diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2010-07-15 20:43:41 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-16 16:25:17 +0100 |
commit | e4f0d88caf0f67a574196bf1576a01dea7494b1c (patch) | |
tree | 44a5bfbff9d12d3c8d2663f65627686e5e3028c7 /meta/packages/wpa-supplicant/wpa-supplicant-0.7.2/init.sh | |
parent | 397793a0a4d931f2b277762c5a0652e173e6e1c8 (diff) | |
download | poky-e4f0d88caf0f67a574196bf1576a01dea7494b1c.tar.gz |
wpa-supplicant: Upgraded to version 0.7.2
Removed local patches since the changes have accpeted in latest version
Rename wpa-supplicant-0.5.inc to wpa-supplicant-0.7.inc
Modify ${S} since the new code structure is changed
Also fixed recipe metadata
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/packages/wpa-supplicant/wpa-supplicant-0.7.2/init.sh')
-rw-r--r-- | meta/packages/wpa-supplicant/wpa-supplicant-0.7.2/init.sh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/packages/wpa-supplicant/wpa-supplicant-0.7.2/init.sh b/meta/packages/wpa-supplicant/wpa-supplicant-0.7.2/init.sh new file mode 100644 index 0000000000..bc7ee9184e --- /dev/null +++ b/meta/packages/wpa-supplicant/wpa-supplicant-0.7.2/init.sh | |||
@@ -0,0 +1,50 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
4 | |||
5 | DAEMON=/usr/sbin/wpa_supplicant | ||
6 | CONFIG="/etc/wpa_supplicant.conf" | ||
7 | PNAME="wpa_supplicant" | ||
8 | |||
9 | # insane defaults | ||
10 | OPTIONS="" | ||
11 | |||
12 | test -f /etc/default/wpa && . /etc/default/wpa | ||
13 | |||
14 | if [ ! -f $CONFIG ]; then | ||
15 | echo "No configuration file found, not starting." | ||
16 | exit 1 | ||
17 | fi | ||
18 | |||
19 | test -f $DAEMON || exit 0 | ||
20 | |||
21 | case "$1" in | ||
22 | start) | ||
23 | echo -n "Starting wpa_supplicant: " | ||
24 | start-stop-daemon -S -b -x $DAEMON -- -Bw -c $CONFIG $OPTIONS >/dev/null | ||
25 | echo "done." | ||
26 | ;; | ||
27 | stop) | ||
28 | echo -n "Stopping wpa_supplicant: " | ||
29 | start-stop-daemon -K -n $PNAME >/dev/null | ||
30 | echo "done." | ||
31 | ;; | ||
32 | reload|force-reload) | ||
33 | echo -n "Reloading wpa_supplicant: " | ||
34 | killall -HUP $PNAME | ||
35 | echo "done." | ||
36 | ;; | ||
37 | restart) | ||
38 | echo -n "Restarting wpa_supplicant: " | ||
39 | start-stop-daemon -K -n $PNAME >/dev/null | ||
40 | sleep 1 | ||
41 | start-stop-daemon -S -b -x $DAEMON -- -Bw -c $CONFIG $OPTIONS >/dev/null | ||
42 | echo "done." | ||
43 | ;; | ||
44 | *) | ||
45 | echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2 | ||
46 | exit 1 | ||
47 | ;; | ||
48 | esac | ||
49 | |||
50 | exit 0 | ||