欢迎光临
我们一直在努力

花生棒内部常用操作

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
赞(0)
未经允许不得转载:李子博客 » 花生棒内部常用操作
分享到: 更多 (0)

评论 1

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1
    头像

    活捉大佬一只

    丘八4年前 (2019-02-26)回复