sonic-buildimage/device/centec/x86_64-centec_v682_48x8c-r0/platform_reboot

16 lines
328 B
Plaintext
Raw Normal View History

#!/usr/bin/env python
import subprocess
import time
def main():
subprocess.call(['hwclock', '-w', '-f', '/dev/rtc1'])
time.sleep(1)
subprocess.call(['i2cset', '-y', '0', '0x36', '0x23', '0'])
time.sleep(1)
subprocess.call(['i2cset', '-y', '0', '0x36', '0x23', '1'])
if __name__ == '__main__':
main()