<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">The diff is for /etc/init.d/dnsmasq <br>
      <br>
      This diff works for me, it puts the following change in
      /var/etc/dnsmasq.conf<br>
      <br>
      dhcp-relay=192.168.200.1,10.255.255.225<br>
      <br>
      What do i need to change to submit it as a patch ?<br>
      <br>
      Comments are welome :-)<br>
      <br>
      Perry<br>
      <br>
      On 24-04-15 13:21, Kevin Darbyshire-Bryant wrote:<br>
    </div>
    <blockquote cite="mid:553A2723.80803@darbyshire-bryant.me.uk"
      type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <div class="moz-cite-prefix">On 24/04/2015 11:17, Perry Couprie
        wrote:<br>
      </div>
      <blockquote cite="mid:553A1843.6080408@couprie.net" type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=utf-8">
        <div class="moz-cite-prefix">And something like this ?<br>
          <br>
          --- dnsmasq.orig    2015-04-24 12:14:51.453093251 +0200<br>
          +++ dnsmasq    2015-04-24 12:15:15.121092827 +0200<br>
          @@ -416,6 +416,10 @@<br>
               xappend
          "--dhcp-range=$networkid,$START,$END,$NETMASK,$leasetime${options:+
          $options}"<br>
           <br>
               dhcp_option_add "$cfg" "$networkid"<br>
          +<br>
          +    config_get relay "$cfg" relay<br>
          +    network_get_ipaddr interface_ip "$networkid"<br>
          +    xappend "--dhcp-relay=$interface_ip,$relay"<br>
           }<br>
           <br>
           dhcp_option_add() {<br>
          <br>
          Perry<br>
          <br>
        </div>
      </blockquote>
      That syntax won't work in /etc/dnsmasq.conf - it only understands
      dnsmasq options, not .init/uci script options which would then be
      passed to dnsmasq by /var/etc/dnsmasq.conf.  If you were talking
      about extending uci so that it understood additional dnsmasq
      options then I'm afraid you're beyond my level of knowledge. 
      Stuff that uci doesn't know about and is relatively static I've
      put into /etc/dnsmasq.conf manually as /var/etc/dnsmasq.conf
      references /etc/dnsmasq.conf for just such user customisation
      purposes.<br>
      <br>
      I hope that helps.<br>
      <br>
      Kevin<br>
      <br>
      <br>
      <br>
      <blockquote cite="mid:553A1843.6080408@couprie.net" type="cite">
        <div class="moz-cite-prefix"> On 24-04-15 07:48, Kevin
          Darbyshire-Bryant wrote:<br>
        </div>
        <blockquote
          cite="mid:A65CEA17-61F0-45B8-854F-16C60ABF6B91@darbyshire-bryant.me.uk"
          type="cite">
          <div>Hi Perry,</div>
          <div><br>
          </div>
          <div>The /etc/dnsmasq.conf file is outside of uci control,  so
            it doesn't get rebuilt at process start/stop and gets
            preserved across reboots/upgrades.  It's an ideal place for
            tweaks and options that the uci interface is not yet aware.
             I use it all the time.  Edit with your favourite text
            editor.</div>
          <div><br>
          </div>
          <div>Kevin<br>
            <br>
            <br>
            <div><span style="-webkit-tap-highlight-color: rgba(26, 26,
                26, 0.296875); -webkit-composition-fill-color: rgba(175,
                192, 227, 0.230469); -webkit-composition-frame-color:
                rgba(77, 128, 180, 0.230469); ">--</span>
              <div style="-webkit-tap-highlight-color: rgba(26, 26, 26,
                0.296875); -webkit-composition-fill-color: rgba(175,
                192, 227, 0.230469); -webkit-composition-frame-color:
                rgba(77, 128, 180, 0.230469); ">Cheers,</div>
              <div style="-webkit-tap-highlight-color: rgba(26, 26, 26,
                0.296875); -webkit-composition-fill-color: rgba(175,
                192, 227, 0.230469); -webkit-composition-frame-color:
                rgba(77, 128, 180, 0.230469); "><br>
              </div>
              <div style="-webkit-tap-highlight-color: rgba(26, 26, 26,
                0.296875); -webkit-composition-fill-color: rgba(175,
                192, 227, 0.230469); -webkit-composition-frame-color:
                rgba(77, 128, 180, 0.230469); "><a
                  moz-do-not-send="true"
                  href="mailto:Kevin@Darbyshire-Bryant.me.uk">Kevin@Darbyshire-Bryant.me.uk</a></div>
              <div style="-webkit-tap-highlight-color: rgba(26, 26, 26,
                0.296875); -webkit-composition-fill-color: rgba(175,
                192, 227, 0.230469); -webkit-composition-frame-color:
                rgba(77, 128, 180, 0.230469); "><br>
              </div>
            </div>
          </div>
          <div><br>
            On 24 Apr 2015, at 00:10, Perry Couprie <<a
              moz-do-not-send="true" href="mailto:perry@couprie.net">perry@couprie.net</a>>



            wrote:<br>
            <br>
          </div>
          <blockquote type="cite">
            <div>
              <div class="moz-cite-prefix">Can this be done by using uci
                commands ?<br>
                <br>
                Perry<br>
                <br>
                On 23-04-15 23:20, Kevin Darbyshire-Bryant wrote:<br>
              </div>
              <blockquote
                cite="mid:55396229.9020000@darbyshire-bryant.me.uk"
                type="cite">
                <div class="moz-cite-prefix">On 23/04/2015 21:55, <a
                    moz-do-not-send="true"
                    class="moz-txt-link-abbreviated"
                    href="mailto:openwrt-devel@couprie.net">openwrt-devel@couprie.net</a>
                  wrote:<br>
                </div>
                <blockquote cite="mid:55395C5D.5030409@couprie.net"
                  type="cite"> Hi,<br>
                  <br>
                  I need the dnsmasq --dhcp-relay option, how do i add
                  this option to the dnsmasq script ?<br>
                  <br>
                  Perry</blockquote>
                <br>
                You could edit '/etc/dnsmasq.conf' and add your option/s
                directly to it.  Does that achieve your aim?<br>
                <br>
                Kevin<br>
                <br>
                <fieldset class="mimeAttachmentHeader"></fieldset>
                <br>
                <pre wrap="">_______________________________________________
openwrt-devel mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </blockquote>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>