You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
402 B
Plaintext

# Copyright (C) 2017 devolo AG
if [ "$ACTION" = "released" -a "$BUTTON" = "BTN_2" ]; then
. /lib/config/uci.sh
MIN_HOLD_TIME=$(uci_get wireless wps min_hold_time 0)
MAX_HOLD_TIME=$(uci_get wireless wps max_hold_time 3)
if ( [ $SEEN -ge $MIN_HOLD_TIME ] && [ $SEEN -lt $MAX_HOLD_TIME ] ); then
ubus call network.wps enable '{"mode":"wps_pbc"}'
fi
fi