projects
/
wyse_ntpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
moved reboot and restart stuff to shell script daemons
[wyse_ntpd.git]
/
src
/
buildroot-2013.05
/
custom
/
filesystem
/
opt
/
reboot_daemon.sh
diff --git a/src/buildroot-2013.05/custom/filesystem/opt/reboot_daemon.sh
b/src/buildroot-2013.05/custom/filesystem/opt/reboot_daemon.sh
new file mode 100755
(executable)
index 0000000..
1983a16
--- /dev/null
+++ b/
src/buildroot-2013.05/custom/filesystem/opt/reboot_daemon.sh
@@ -0,0
+1,10
@@
+#!/bin/sh
+
+mknod /var/www/data/reboot p
+chmod 644 /var/www/data/reboot
+
+while (true)
+do
+ echo "Rebooting..." > /var/www/data/reboot
+ reboot
+done