comatose603 Posted February 14, 2013 Share Posted February 14, 2013 I've setup the script and enabled it. But it just wont launch the script for some reason. How is wpsScript.sh launched? My resetButton.sh : oot@Pineapple:/pineapple/config# cat resetButton.sh#!/bin/sh#Script to add / remove reset button#Reset is marked as WPS (incorrect)if [ $1 == "enable" ]thenuci add system buttonuci set system.@button.button=wpsuci set system.@button.action=releaseduci set system.@button.handler='cp /etc/config/backup/* /etc/config/ && reboot'uci set system.@button.min=5uci set system.@button.max=10uci commit systemfiif [ $1 == "disable" ]thenuci delete system.@buttonuci commit systemfiroot@Pineapple:/pineapple/config# Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.