Darkhand81 2025-05-23 11:07:04 +10:00 zatwierdzone przez GitHub
commit b5dc302eac
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -39,6 +39,12 @@ def exists(fname):
return False
def validate_boot_file():
if not exists(RC):
with open(RC, "w") as f:
f.write("# boot.py -- run on boot-up\n")
def get_daemon_status():
with open(RC) as f:
for l in f:
@ -71,6 +77,7 @@ def change_daemon(action):
def main():
validate_boot_file()
status = get_daemon_status()
print("WebREPL daemon auto-start status:", "enabled" if status else "disabled")