?? uptime.sh
字號:
#!/bin/sh## this will unconditionally cause a reboot if the uptime increases 2 days# some hard disks might need this ### get uptime info#upt=`cat /proc/uptime | tr -d . | cut -d' ' -f1`## calculated days uptime, note that this number will never be greater than 2#days=`expr $upt / 8640000`if [ $days -ge 2 ]then# # return code -1 means reboot# exit -1fiexit 0
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -