freifunk 523 B

12345678910111213141516171819202122232425
  1. #!/bin/sh /etc/rc.common
  2. # Freifunk Init
  3. # $Id$
  4. START=99
  5. boot() {
  6. test -f /etc/crontabs/root || touch /etc/crontabs/root
  7. grep -q 'killall -HUP dnsmasq' /etc/crontabs/root || {
  8. echo "*/5 * * * * killall -HUP dnsmasq" >> /etc/crontabs/root
  9. }
  10. grep -q '/usr/sbin/ff_olsr_watchdog' /etc/crontabs/root || {
  11. echo "*/5 * * * * /usr/sbin/ff_olsr_watchdog" >> /etc/crontabs/root
  12. }
  13. [ -d /etc/rc.local.d ] && {
  14. for file in /etc/rc.local.d/*; do
  15. test -f "$file" && . "$file"
  16. done
  17. }
  18. /etc/init.d/cron restart &
  19. }