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[3].button=wpsuci set system.@button[3].action=releaseduci set system.@button[3].handler='cp /etc/config/backup/* /etc/config/ && reboot'uci set system.@button[3].min=5uci set system.@button[3].max=10uci commit systemfiif [ $1 == "disable" ]thenuci delete system.@button[3]uci commit systemfiroot@Pineapple:/pineapple/config# Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted February 14, 2013 Share Posted February 14, 2013 This is either an old version of the firmware or the WPS button module has not been updated. This script is incorrect and in general isn't ours. I suggest you upgrade to 2.7.7. Then use our webUI to manage the WPS button. I'll hit up WM as I fear his module is outdated. Best, Sebkinne Quote Link to comment Share on other sites More sharing options...
comatose603 Posted February 14, 2013 Author Share Posted February 14, 2013 I'm on 2.7.5 And the button infusion doesnt work either. I guess I'll try 2.7.7 Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted February 14, 2013 Share Posted February 14, 2013 I'm afraid but even without the module, the wps button does not seam to be working for me either and the module does not depend on any resetButton.sh or other scripts to avoid issues in case of changes in the reset mechanism. In the uci system, the reset button is at the position 0 and I don't touch it. Additional buttons are added after, starting from position 1. Seb, I do also have this resetButton.sh script on my pineapple in the /pineapple/config/ folder. It is called from config.php. :P if(isset($_GET[resetButton])){ if($_GET[resetButton] == "enable"){ exec("sh config/resetButton.sh enable"); exec("echo enabled > config/resetButtonStatus"); } if($_GET[resetButton] == "disable"){ exec("sh config/resetButton.sh disable"); exec("echo disabled > config/resetButtonStatus"); } Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted February 14, 2013 Share Posted February 14, 2013 Hm, that must have slipped away on us. Anyway, this will be fixed ASAP Quote Link to comment Share on other sites More sharing options...
comatose603 Posted February 20, 2013 Author Share Posted February 20, 2013 Any update on this? Quote Link to comment Share on other sites More sharing options...
GeHeNoM Posted February 23, 2013 Share Posted February 23, 2013 Hi, the WPS button does not seam to be working for me either. i'm on 2.7.7 firmware. Quote Link to comment Share on other sites More sharing options...
GeHeNoM Posted February 24, 2013 Share Posted February 24, 2013 Solved, after deep debuging of this issue. The solution is put symbolic link to /lib/functions.sh in /etc/functions.sh. Make this by (connect by ssh to the device): ln -s /lib/functions.sh /etc/functions.sh That link fix the issue of the buttons. The file /etc/hotplug.d/button/00-button search for /etc/functions.sh, if its not exists the buttons (wps and reset) not work. Another thing is that by default (before installing the button module) the uci system button[1] handler config to /www/pineapple/config/wpsScript.sh, this path dos'nt exists. the script found at /pineapple/config/wpsScript.sh. fix it by (connect by ssh to the device) : uci set system.@button[1].handler='sh /pineapple/config/wpsScript.sh' uci commit system the first bug found at 2.7.1- 2.7.7 (in that versions the buttons not work!!). the second bug gound at 2.7.0-2.7.7. after fix those bugs the buttons work on 2.7.7. :D​ tell me if there any problems, GeHeNoM. Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted February 24, 2013 Share Posted February 24, 2013 Solved, after deep debuging of this issue. The solution is put symbolic link to /lib/functions.sh in /etc/functions.sh. Make this by (connect by ssh to the device): ln -s /lib/functions.sh /etc/functions.sh That link fix the issue of the buttons. The file /etc/hotplug.d/button/00-button search for /etc/functions.sh, if its not exists the buttons (wps and reset) not work. Another thing is that by default (before installing the button module) the uci system button[1] handler config to /www/pineapple/config/wpsScript.sh, this path dos'nt exists. the script found at /pineapple/config/wpsScript.sh. fix it by (connect by ssh to the device) : uci set system.@button[1].handler='sh /pineapple/config/wpsScript.sh' uci commit system the first bug found at 2.7.1- 2.7.7 (in that versions the buttons not work!!). the second bug gound at 2.7.0-2.7.7. after fix those bugs the buttons work on 2.7.7. :D​ tell me if there any problems, GeHeNoM. Genius! Works great for me! Nice one mate -Foxtrot Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted February 24, 2013 Share Posted February 24, 2013 Yup, a similar fix is in 2.8.0! No symlink though, as the issue lies with some sort having updated and as we aren't stabilized yet not everything has moved over. Cheers Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted February 24, 2013 Share Posted February 24, 2013 Is thier an ETA on 2.8.0 yet sebkinne? :D -Foxtrot Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted February 25, 2013 Share Posted February 25, 2013 Is thier an ETA on 2.8.0 yet sebkinne? :D -Foxtrot Nope, not really. All I can say is soon. Just working on the last few things, some of which just take some time. It will be released when it is ready. Regards, Sebkinne Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.