|
Revision 4192, 475 bytes
(checked in by jow, 4 years ago)
|
|
modules/freifunk:
- install cronjob for gateway check
- provide /etc/rc.local.d/ as suggested by ufo
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | #!/bin/sh /etc/rc.common |
|---|
| 2 | # Freifunk Init |
|---|
| 3 | # $Id$ |
|---|
| 4 | |
|---|
| 5 | START=99 |
|---|
| 6 | |
|---|
| 7 | boot() { |
|---|
| 8 | grep -q 'killall -HUP dnsmasq' /etc/crontabs/root || { |
|---|
| 9 | echo "*/5 * * * * killall -HUP dnsmasq" >> /etc/crontabs/root |
|---|
| 10 | } |
|---|
| 11 | |
|---|
| 12 | grep -q '/usr/sbin/ff_olsr_test_gw' /etc/crontabs/root || { |
|---|
| 13 | echo "* * * * * /usr/sbin/ff_olsr_test_gw" >> /etc/crontabs/root |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | [ -f /etc/rc.local ] && . /etc/rc.local |
|---|
| 17 | [ -d /etc/rc.local.d ] && { |
|---|
| 18 | for file in /etc/rc.local.d/*; do |
|---|
| 19 | test -f "$file" && . "$file" |
|---|
| 20 | done |
|---|
| 21 | } |
|---|
| 22 | } |
|---|