mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +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 "--dhcp-broadcast=tag:needs-broadcast"
|
||||||
|
|
||||||
xappend "--hostsdir=$(dirname $HOSTFILE)"
|
xappend "--addn-hosts=$(dirname $HOSTFILE)"
|
||||||
|
|
||||||
config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq.d"
|
config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq.d"
|
||||||
[ ! -d "$dnsmasqconfdir" ] && mkdir -p $dnsmasqconfdir
|
|
||||||
xappend "--conf-dir=$dnsmasqconfdir"
|
xappend "--conf-dir=$dnsmasqconfdir"
|
||||||
|
dnsmasqconfdir="${dnsmasqconfdir%%,*}"
|
||||||
|
[ ! -d "$dnsmasqconfdir" ] && mkdir -p $dnsmasqconfdir
|
||||||
xappend "--user=dnsmasq"
|
xappend "--user=dnsmasq"
|
||||||
xappend "--group=dnsmasq"
|
xappend "--group=dnsmasq"
|
||||||
echo >> $CONFIGFILE_TMP
|
echo >> $CONFIGFILE_TMP
|
||||||
|
@ -1068,18 +1069,10 @@ service_triggers()
|
||||||
config_foreach add_interface_trigger dhcp
|
config_foreach add_interface_trigger dhcp
|
||||||
}
|
}
|
||||||
|
|
||||||
boot()
|
|
||||||
{
|
|
||||||
#BOOT=1
|
|
||||||
start "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
local instance="$1"
|
local instance="$1"
|
||||||
local instance_found=0
|
local instance_found=0
|
||||||
|
|
||||||
[ -n "$BOOT" ] && return
|
|
||||||
|
|
||||||
. /lib/functions/network.sh
|
. /lib/functions/network.sh
|
||||||
|
|
||||||
config_cb() {
|
config_cb() {
|
||||||
|
|
Loading…
Reference in a new issue