modules/freifunk: silence grep errors if /etc/crontabs/root does not exist
This commit is contained in:
parent
b3ea7cd0ed
commit
ceaca7e7ce
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
|||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue