diff --git a/adafruit_shell.py b/adafruit_shell.py index 39e8fb2..2b5648f 100644 --- a/adafruit_shell.py +++ b/adafruit_shell.py @@ -135,6 +135,13 @@ class Shell: """ os.system("clear") + @staticmethod + def reboot(): + """ + Reboot the system + """ + os.system("reboot") + @staticmethod def is_root(): """ @@ -158,6 +165,7 @@ class Shell: """ if append: mode = "a" + content = "\n" + content else: mode = "w" service_file = open(path, mode)