# Copyright (C) 2017 devolo AG if [ "$ACTION" = "released" -a "$BUTTON" = "BTN_0" ]; then . /lib/config/uci.sh MIN_HOLD_TIME=$(uci_get wireless wps min_hold_time_clone 0) MAX_HOLD_TIME=$(uci_get wireless wps max_hold_time_clone 3) if ( [ $SEEN -ge $MIN_HOLD_TIME ] && [ $SEEN -lt $MAX_HOLD_TIME ] ); then ubus call network.wps clone fi fi