Reboot script in Python
-
Is there a script in Python that can reboot the Onion Omega?
Thanks!
-
@kdman you can use ubus to reboot your Omega so you can use Python.
ubus call system reboot
-
@crispyoz I have tried searching but can't find a working example, Please can you help me with one?
Many thanks
-
@kdman take a look at PyPi there are examples of calling ubus.
-
@crispyoz okay, thank you
-
This works:
from subprocess import call call('reboot')