summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/root/etc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-01-25 20:14:49 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-01-25 20:14:49 +0000
commit950ab853eab2ae0a116d4d2390e46a58c9f5ad42 (patch)
tree59e423c9b83e24894a6672b86da5e3d36fdf012d /modules/freifunk/root/etc
parentc1c220b73922fba4646b224e7309f71965aaec0d (diff)
modules/freifunk: implement /etc/rc.local, install dnsmasq sighup cronjob on boot
Diffstat (limited to 'modules/freifunk/root/etc')
-rwxr-xr-xmodules/freifunk/root/etc/init.d/freifunk11
-rw-r--r--modules/freifunk/root/etc/rc.local2
2 files changed, 13 insertions, 0 deletions
diff --git a/modules/freifunk/root/etc/init.d/freifunk b/modules/freifunk/root/etc/init.d/freifunk
new file mode 100755
index 000000000..b7a1f90eb
--- /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 000000000..58e44e47a
--- /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