1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
openmptcprouter-feeds/qaa/qca/net/qca-hostap/files/qca-hostapd.init
2022-09-10 05:47:47 +08:00

21 lines
477 B
Bash

#!/bin/sh /etc/rc.common
#
# Copyright (c) 2017 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
#
# Copyright (c) 2016, The Linux Foundation. All rights reserved.
#
START=15
boot() {
if [ -e "/var/run/hostapd-global.pid" ]
then
kill $(cat /var/run/hostapd-global.pid) &> /dev/null
rm /var/run/hostapd-global.pid &> /dev/null
fi
hostapd -g /var/run/hostapd/global -B -P /var/run/hostapd-global.pid
}