bb09ebe977
Adding platform support for FS s5800-48t4s and s5800-48t8s-mars8p. Both s5800-48t4s and s5800-48t8s-mars8p have 48 * 10/100/1000 Base-T ports, 4 * 10GE SFP+ Ports on Centec TsingMa. s5800-48t4s is different from s5800-48t8s-mars8p in that: The phy chip used by s5800-48t4s is Marvell 88e1680; The phy chip used by s5800-48t4s-mars8p is Centec ctc21108;
14 lines
356 B
Python
Executable File
14 lines
356 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
def main():
|
|
# reboot the system
|
|
with open('/sys/class/gpio/export', 'w') as file:
|
|
file.write('502\n')
|
|
with open('/sys/class/gpio/gpio502/direction', 'w') as file:
|
|
file.write('out\n')
|
|
with open('/sys/class/gpio/gpio502/value', 'w') as file:
|
|
file.write('1\n')
|
|
|
|
if __name__ == "__main__":
|
|
main()
|