X-Git-Url: http://git.pjr.cc/?p=wyse_ntpd.git;a=blobdiff_plain;f=src%2Fbuildroot-2013.05%2Fcustom%2Ffilesystem%2Fopt%2Freboot_daemon.sh;fp=src%2Fbuildroot-2013.05%2Fcustom%2Ffilesystem%2Fopt%2Freboot_daemon.sh;h=1983a1648947eb6440432e1aa77cfa4e518ac036;hp=0000000000000000000000000000000000000000;hb=36b94f9e2eea72d2de0f1af390341f96668aaa95;hpb=ae309dc2a7f0054a2878cb47dcd8451f2399d0b2 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 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