blob: af5b44bdfdbe535365097621cd3b3d4f9af32594 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
diff -uprN old/init new/init
--- old/init 2016-11-30 10:37:35.512524572 -0600
+++ new/init 2016-11-30 10:35:11.176524877 -0600
@@ -3,6 +3,21 @@ DAEMON=/usr/sbin/hostapd
NAME=hostapd
DESC="HOSTAP Daemon"
ARGS="/etc/hostapd.conf -B"
+PLTFM="/sys/devices/platform/mts-io"
+PRDIDFILE="${PLTFM}/product-id"
+if ! [[ -f "${PRDIDFILE}" ]] ; then
+ echo "No ${PRDIDFILE}."
+ exit 1
+fi
+PRDID=$(cat "${PLTFM}/product-id")
+CONDUIT="^MTCDT"
+((WIFIBT=1))
+if [[ $PRDID =~ $CONDUIT ]] ; then
+ if ! [[ -f ${PLTFM}/wifi-bt-reset ]] ; then
+ ((WIFIBT=0))
+ fi
+fi
+
test -f $DAEMON || exit 0
@@ -10,6 +25,9 @@ set -e
case "$1" in
start)
+ if ((WIFIBT == 0)) ; then
+ exit 0
+ fi
echo -n "Starting $DESC: "
start-stop-daemon -S -x $DAEMON -- $ARGS
echo "$NAME."
|