2021-08-04 13:36:36 +03:00
|
|
|
#!/bin/kuroko
|
|
|
|
import os
|
|
|
|
import kuroko
|
|
|
|
|
|
|
|
let serial = os.open('/dev/ttyS1',os.O_RDWR)
|
|
|
|
if serial == 0:
|
|
|
|
os.dup(serial)
|
|
|
|
os.dup(serial)
|
|
|
|
|
|
|
|
# Say hello
|
|
|
|
let uname = os.uname()
|
|
|
|
print(f"Test script running on {uname['sysname']} {uname['release']} {uname['version']} ({uname['machine']}), Kuroko {kuroko.version}")
|
|
|
|
|
|
|
|
print("====")
|
|
|
|
|
|
|
|
# Perform tests
|
2021-08-31 13:43:12 +03:00
|
|
|
os.system("/bin/insmod /mod/ahci.ko")
|
2021-08-04 13:36:36 +03:00
|
|
|
|
|
|
|
# Reboot
|
|
|
|
print("====")
|
|
|
|
print('Tests completed, exiting.')
|
|
|
|
os.execv('/bin/reboot',['/bin/reboot'])
|