blob: 5ffec43e83c4174d9977c5cea0f48073611b41a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh /etc/rc.common
# Freifunk Init
# $Id$
START=99
boot() {
test -f /etc/crontabs/root || touch /etc/crontabs/root
grep -q 'killall -HUP dnsmasq' /etc/crontabs/root || {
echo "*/5 * * * * killall -HUP dnsmasq" >> /etc/crontabs/root
}
grep -q '/usr/sbin/ff_olsr_watchdog' /etc/crontabs/root || {
echo "*/5 * * * * /usr/sbin/ff_olsr_watchdog" >> /etc/crontabs/root
}
grep -q '/usr/sbin/ff_rdate' /etc/crontabs/root || {
echo "0 */4 * * * /usr/sbin/ff_rdate" >> /etc/crontabs/root
}
[ -d /etc/rc.local.d ] && {
for file in /etc/rc.local.d/*; do
test -f "$file" && . "$file"
done
}
( sleep 40; /usr/sbin/ff_rdate; /etc/init.d/cron restart ) &
}
|