mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
add qca feed
This commit is contained in:
parent
d43ffd8720
commit
26ac03f3f6
451 changed files with 111139 additions and 12069 deletions
25
qaa/qca/net/qca-hostap/files/wps-reset-hotplug.sh
Normal file
25
qaa/qca/net/qca-hostap/files/wps-reset-hotplug.sh
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# Copyright (c) 2017 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2014, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
|
||||
if [ "$ACTION" = "released" -a "$BUTTON" = "wps" ]; then
|
||||
default_hold=3
|
||||
if [ -f /var/run/plchost.pid ]
|
||||
then
|
||||
default_hold=12
|
||||
fi
|
||||
if [ "$SEEN" -gt $default_hold ]; then
|
||||
echo "" > /dev/console
|
||||
echo "RESET TO FACTORY SETTING EVENT DETECTED" > /dev/console
|
||||
echo "PLEASE WAIT WHILE REBOOTING THE DEVICE..." > /dev/console
|
||||
rm -rf /overlay/*
|
||||
reboot
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue