mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-14 20:31:54 +00:00
Update dnsmasq.init to latest version in openwrt upstream
This commit is contained in:
parent
c9f19652ac
commit
35aa6486f7
1 changed files with 3 additions and 10 deletions
|
@ -946,11 +946,12 @@ dnsmasq_start()
|
|||
|
||||
xappend "--dhcp-broadcast=tag:needs-broadcast"
|
||||
|
||||
xappend "--hostsdir=$(dirname $HOSTFILE)"
|
||||
xappend "--addn-hosts=$(dirname $HOSTFILE)"
|
||||
|
||||
config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq.d"
|
||||
[ ! -d "$dnsmasqconfdir" ] && mkdir -p $dnsmasqconfdir
|
||||
xappend "--conf-dir=$dnsmasqconfdir"
|
||||
dnsmasqconfdir="${dnsmasqconfdir%%,*}"
|
||||
[ ! -d "$dnsmasqconfdir" ] && mkdir -p $dnsmasqconfdir
|
||||
xappend "--user=dnsmasq"
|
||||
xappend "--group=dnsmasq"
|
||||
echo >> $CONFIGFILE_TMP
|
||||
|
@ -1068,18 +1069,10 @@ service_triggers()
|
|||
config_foreach add_interface_trigger dhcp
|
||||
}
|
||||
|
||||
boot()
|
||||
{
|
||||
#BOOT=1
|
||||
start "$@"
|
||||
}
|
||||
|
||||
start_service() {
|
||||
local instance="$1"
|
||||
local instance_found=0
|
||||
|
||||
[ -n "$BOOT" ] && return
|
||||
|
||||
. /lib/functions/network.sh
|
||||
|
||||
config_cb() {
|
||||
|
|
Loading…
Reference in a new issue