From: Jo-Philipp Wich Date: Sun, 25 Jan 2009 20:15:29 +0000 (+0000) Subject: Merge r4143 X-Git-Tag: 0.8.5~34 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=88ac7d24759a8088db5ba1957e9372f4d3775042;p=project%2Fluci.git Merge r4143 --- diff --git a/modules/freifunk/ipkg/postinst b/modules/freifunk/ipkg/postinst new file mode 100755 index 0000000000..90e28effee --- /dev/null +++ b/modules/freifunk/ipkg/postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +[ -n "${IPKG_INSTROOT}" ] || { + /etc/init.d/freifunk enabled || /etc/init.d/freifunk enable +} diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk new file mode 100755 index 0000000000..b7a1f90eb9 --- /dev/null +++ b/modules/freifunk/root/etc/init.d/freifunk @@ -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 +} diff --git a/modules/freifunk/root/etc/rc.local b/modules/freifunk/root/etc/rc.local new file mode 100644 index 0000000000..58e44e47ab --- /dev/null +++ b/modules/freifunk/root/etc/rc.local @@ -0,0 +1,2 @@ +# /etc/rc.local +# Only executed on boot, put your custom startup commands here