mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
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!")
|