You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
303 B
Python
19 lines
303 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
|
import sys
|
|
import platform
|
|
|
|
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|
import gateway
|
|
from gateway import die
|
|
|
|
|
|
gw = gateway.Gateway()
|
|
|
|
print("Send command...")
|
|
gw.run_cmd("reboot")
|
|
|
|
print("Reboot activated!")
|