modules/freifunk: implement /etc/rc.local, install dnsmasq sighup cronjob on boot

This commit is contained in:
Jo-Philipp Wich 2009-01-25 20:14:49 +00:00
parent c1c220b739
commit 950ab853ea
3 changed files with 18 additions and 0 deletions

5
modules/freifunk/ipkg/postinst Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
/etc/init.d/freifunk enabled || /etc/init.d/freifunk enable
}

View file

@ -0,0 +1,11 @@
#!/bin/sh /etc/rc.common
# Freifunk Init
# $Id$
START=99
boot() {
echo "*/5 * * * * killall -HUP dnsmasq" >> /etc/crontabs/root
[ -f /etc/rc.local ] && . /etc/rc.local
}

View file

@ -0,0 +1,2 @@
# /etc/rc.local
# Only executed on boot, put your custom startup commands here