sonic-buildimage/device/centec/arm64-centec_e530_24x2q-r0/platform_reboot

12 lines
273 B
Plaintext
Raw Normal View History

#!/usr/bin/python
import os
def main():
# reboot the system
os.system('echo 502 > /sys/class/gpio/export')
os.system('echo out > /sys/class/gpio/gpio502/direction')
os.system('echo 1 > /sys/class/gpio/gpio502/value')
if __name__ == "__main__":
main()