我正在调试一些运行 Linux 3.2.6 Angstrom 发行版的嵌入式硬件,我需要设备每 60 秒重新启动一次。我试过这个:
In /etc/rc5.d : S99reboot -> /home/root/test.sh
/home/root/test.sh contains only this: /home/root/rebootunit.sh&
/home/root/rebootunit.sh has this:
echo "sleep 60 and reboot"
sleep 60
reboot
Run Code Online (Sandbox Code Playgroud)
从命令行工作正常,但从启动运行时,单元开始关闭,然后卡住:
Deactivating swap...
Unmounting local filesystems...
Give root password for system maintenance
(or type Control-D for normal startup):
Run Code Online (Sandbox Code Playgroud)
并且文件系统处于只读模式。我不确定为什么会发生这种情况,或者是否有其他方法可以做到这一点 - 我愿意接受建议,谢谢
归档时间: |
|
查看次数: |
2720 次 |
最近记录: |