From 35d6047a76a6f921ec44fa690813c6b421b79203 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 30 Aug 2017 17:47:26 +0200 Subject: [PATCH] - pre/post-wlan: use SHOWINFO aliases --- skel-root/coolstream/hd1/etc/network/post-wlan0.sh | 4 +++- skel-root/coolstream/hd1/etc/network/pre-wlan0.sh | 5 ++++- skel-root/coolstream/hd2/etc/network/post-wlan0.sh | 4 +++- skel-root/coolstream/hd2/etc/network/pre-wlan0.sh | 5 ++++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/skel-root/coolstream/hd1/etc/network/post-wlan0.sh b/skel-root/coolstream/hd1/etc/network/post-wlan0.sh index 66784c63..ecca9ef5 100755 --- a/skel-root/coolstream/hd1/etc/network/post-wlan0.sh +++ b/skel-root/coolstream/hd1/etc/network/post-wlan0.sh @@ -1,6 +1,8 @@ #!/bin/sh -echo Stopping wlan0 +. /etc/init.d/globals + +SHOWINFO "Stopping wlan0" /sbin/wpa_cli terminate sleep 2 diff --git a/skel-root/coolstream/hd1/etc/network/pre-wlan0.sh b/skel-root/coolstream/hd1/etc/network/pre-wlan0.sh index c134993d..5e84e0ec 100755 --- a/skel-root/coolstream/hd1/etc/network/pre-wlan0.sh +++ b/skel-root/coolstream/hd1/etc/network/pre-wlan0.sh @@ -1,9 +1,12 @@ #!/bin/sh -echo Starting wlan0 +. /etc/init.d/globals + +SHOWINFO "Starting wlan0" /sbin/wpa_cli terminate sleep 2 + /sbin/wpa_supplicant -D wext -c /etc/wpa_supplicant.conf -i wlan0 -B #/sbin/wpa_supplicant -B -D wext -i ra0 -c /etc/wpa_supplicant.conf //ralink sleep 8 diff --git a/skel-root/coolstream/hd2/etc/network/post-wlan0.sh b/skel-root/coolstream/hd2/etc/network/post-wlan0.sh index 66784c63..ecca9ef5 100755 --- a/skel-root/coolstream/hd2/etc/network/post-wlan0.sh +++ b/skel-root/coolstream/hd2/etc/network/post-wlan0.sh @@ -1,6 +1,8 @@ #!/bin/sh -echo Stopping wlan0 +. /etc/init.d/globals + +SHOWINFO "Stopping wlan0" /sbin/wpa_cli terminate sleep 2 diff --git a/skel-root/coolstream/hd2/etc/network/pre-wlan0.sh b/skel-root/coolstream/hd2/etc/network/pre-wlan0.sh index c134993d..5e84e0ec 100755 --- a/skel-root/coolstream/hd2/etc/network/pre-wlan0.sh +++ b/skel-root/coolstream/hd2/etc/network/pre-wlan0.sh @@ -1,9 +1,12 @@ #!/bin/sh -echo Starting wlan0 +. /etc/init.d/globals + +SHOWINFO "Starting wlan0" /sbin/wpa_cli terminate sleep 2 + /sbin/wpa_supplicant -D wext -c /etc/wpa_supplicant.conf -i wlan0 -B #/sbin/wpa_supplicant -B -D wext -i ra0 -c /etc/wpa_supplicant.conf //ralink sleep 8