Hi folks.
I've got my Dot3k installed & working. The sample scripts are executing OK. Now I'm trying to modify a copy of the menu.py script to include power-off and reboot options. Anyone tried this?
I've Googled & found references to including the following in a python script.
import os
import subprocess
from subprocess import call
...and I'm trying the following;
menu.add_item('Power off', 'call("sudo halt, Shell=True")')
...but that doesn't appear to work. The Pi doesn't power down. I've tried executing that menu script under sudo but with no difference; it still doesn't power down. What am I doing wrong?
thanks,
Ben