summaryrefslogtreecommitdiff
path: root/multitech/recipes
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2013-04-24 09:19:29 -0500
committerMike Fiore <mfiore@multitech.com>2013-04-24 09:19:29 -0500
commit27fbad82e88a7e64ca0622e3fee6937c4a6daedc (patch)
tree993bd698805b40c2239b171e499d429b2425b57b /multitech/recipes
parent975f1ea587da06fadbff78e3f1e38a2f07c173dd (diff)
ocg-scripts: removed wifi client script
Diffstat (limited to 'multitech/recipes')
-rw-r--r--multitech/recipes/ocg-scripts/ocg-scripts-1.0.inc1
-rw-r--r--multitech/recipes/ocg-scripts/ocg-scripts-1.0/ocg-wifi-client.sh43
-rw-r--r--multitech/recipes/ocg-scripts/ocg-scripts_1.0.bb3
3 files changed, 1 insertions, 46 deletions
diff --git a/multitech/recipes/ocg-scripts/ocg-scripts-1.0.inc b/multitech/recipes/ocg-scripts/ocg-scripts-1.0.inc
index 46d1cfa..b075ede 100644
--- a/multitech/recipes/ocg-scripts/ocg-scripts-1.0.inc
+++ b/multitech/recipes/ocg-scripts/ocg-scripts-1.0.inc
@@ -5,7 +5,6 @@ LICENSE = "GPL"
do_install() {
install -d ${D}${sbindir} ${D}${sbindir}
- install -m 755 ${WORKDIR}/ocg-wifi-client.sh ${D}${sbindir}
install -m 755 ${WORKDIR}/ocg-wifi-ap.sh ${D}${sbindir}
install -m 755 ${WORKDIR}/ocg-wifi-dhcpd.sh ${D}${sbindir}
}
diff --git a/multitech/recipes/ocg-scripts/ocg-scripts-1.0/ocg-wifi-client.sh b/multitech/recipes/ocg-scripts/ocg-scripts-1.0/ocg-wifi-client.sh
deleted file mode 100644
index 6987506..0000000
--- a/multitech/recipes/ocg-scripts/ocg-scripts-1.0/ocg-wifi-client.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/bash
-
-do_start() {
- echo "joining wireless network"
- wpa_supplicant -B -D nl80211 -i wlan0 -c /etc/wpa_supplicant.conf
- sleep 5
- echo "starting dhcp client"
- udhcpc -i wlan0
-}
-
-do_stop() {
- echo "stopping wpa_supplicant"
- killall wpa_supplicant
- echo "stopping dhcp client"
- killall udhcpc
-}
-
-# main
-if [[ $# -ne 1 ]]
-then
- echo "usage: $0 start|stop|restart"
- exit 1
-fi
-
-case $1 in
- start)
- if [[ ! -f "/etc/wpa_supplicant.conf" ]]
- then
- echo "/etc/wpa_supplicant.conf does not exist"
- exit 1
- fi
- do_start
- ;;
- stop)
- do_stop
- ;;
- restart)
- do_stop
- do_start
- ;;
-esac
-
-exit 0
diff --git a/multitech/recipes/ocg-scripts/ocg-scripts_1.0.bb b/multitech/recipes/ocg-scripts/ocg-scripts_1.0.bb
index bbe9f10..04a643e 100644
--- a/multitech/recipes/ocg-scripts/ocg-scripts_1.0.bb
+++ b/multitech/recipes/ocg-scripts/ocg-scripts_1.0.bb
@@ -4,8 +4,7 @@ require ocg-scripts-1.0.inc
PR = "r1"
-SRC_URI = "file://ocg-wifi-client.sh \
- file://ocg-wifi-ap.sh \
+SRC_URI = "file://ocg-wifi-ap.sh \
file://ocg-wifi-dhcpd.sh"
S = "${WORKDIR}/ocg-scripts-${PV}"