diff options
Diffstat (limited to 'recipes-connectivity/hostapd/hostap-daemon-2.4/init.patch')
-rw-r--r-- | recipes-connectivity/hostapd/hostap-daemon-2.4/init.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-connectivity/hostapd/hostap-daemon-2.4/init.patch b/recipes-connectivity/hostapd/hostap-daemon-2.4/init.patch new file mode 100644 index 0000000..af5b44b --- /dev/null +++ b/recipes-connectivity/hostapd/hostap-daemon-2.4/init.patch @@ -0,0 +1,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." |