modules/freifunk: implement /etc/rc.local, install dnsmasq sighup cronjob on boot
This commit is contained in:
parent
c1c220b739
commit
950ab853ea
3 changed files with 18 additions and 0 deletions
5
modules/freifunk/ipkg/postinst
Executable file
5
modules/freifunk/ipkg/postinst
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
[ -n "${IPKG_INSTROOT}" ] || {
|
||||
/etc/init.d/freifunk enabled || /etc/init.d/freifunk enable
|
||||
}
|
11
modules/freifunk/root/etc/init.d/freifunk
Executable file
11
modules/freifunk/root/etc/init.d/freifunk
Executable 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
|
||||
}
|
2
modules/freifunk/root/etc/rc.local
Normal file
2
modules/freifunk/root/etc/rc.local
Normal file
|
@ -0,0 +1,2 @@
|
|||
# /etc/rc.local
|
||||
# Only executed on boot, put your custom startup commands here
|
Loading…
Reference in a new issue