#!/bin/sh uci -q show system.@restorefactory[0] || { uci add system restorefactory uci set system.@restorefactory[0].button=reset uci set system.@restorefactory[0].action=pressed uci set system.@restorefactory[0].timeout=5 uci commit }