LED灯控制:
调整灯色为绿色
/lib/functions/gpio.sh 10 out 0
/lib/functions/gpio.sh 9 out 1
/lib/functions/gpio.sh 11 out 1
调整灯色为红色
/lib/functions/gpio.sh 10 out 1
/lib/functions/gpio.sh 9 out 0
/lib/functions/gpio.sh 11 out 1
关闭LED灯
/lib/functions/gpio.sh 10 out 1
/lib/functions/gpio.sh 9 out 1
/lib/functions/gpio.sh 11 out 1
oray指示灯状态脚本:
/sbin/led_status.sh
秘钥登录,公钥存放位置:
root@OrayPh:/etc/dropbear# cat /etc/dropbear/authorized_keys
端口号修改和禁用密码登录,以及banner位置:
root@OrayPh:/etc/dropbear# cat /etc/config/dropbear
config dropbear
option PasswordAuth 'on'
option RootPasswordAuth 'on'
option Port '44022'
# option BannerFile '/etc/banner'
花生壳启动程序:
/sbin/daemon.sh
花生壳账户信息:
root@OrayPh:~# cat /etc/PhMain.ini
停止花生壳程序运行:
ps一下找到相关进程,kill掉,然后再crontab中注释守护任务,把凌晨3点直接修改为reboot。
root@OrayPh:/sbin# crontab -l
#*/1 * * * * /sbin/daemon.sh
#0 3 * * * /sbin/reboot.sh
0 3 * * * /sbin/reboot
重启测试,可以看到oray的程序已经不会自动运行。
每5分钟释放一下内存:
*/5 * * * * /bin/echo 3 > /proc/sys/vm/drop_caches
唤醒内网计算机:
ether-wake -i br-lan 88:B1:1C:41:31:B8
活捉大佬一只