# 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