2015-03-11, 17:59
Hi,
I added a custom menu entry to Home.xml:
The sh does only contain
When I click on the menu entry, it seems to be the RPi does something, because the mouse movement is not fluid for a second. But the system does not reboot. The log does not say anything about a failed script. It justs holds some info about 3 devices.
I also tried a python script:
Same result. Could someone help me please?
I added a custom menu entry to Home.xml:
Code:
<item id="8">
<label>test</label>
<onclick>System.Exec(/bin/sh sudo sh /home/xbian/test.sh)</onclick>
<icon>-</icon>
<thumb>-</thumb>
</item>
The sh does only contain
Code:
sudo reboot
When I click on the menu entry, it seems to be the RPi does something, because the mouse movement is not fluid for a second. But the system does not reboot. The log does not say anything about a failed script. It justs holds some info about 3 devices.
I also tried a python script:
Code:
#!/usr/bin/python
import subprocess
subprocess.call("sudo sh /home/xbian/test.sh", shell=True)
Same result. Could someone help me please?