]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
package: base-files: turn error into warning 13158/head
authorLeon M. Busch-George <leon@georgemail.eu>
Sun, 20 Aug 2023 19:08:20 +0000 (21:08 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 19 Sep 2023 13:38:59 +0000 (15:38 +0200)
Some users have their routers configured to supply a DHCP range that
includes the local interface address.
That worked with dnsmasq because it automatically skips the local
address.

Re-enable those existing configurations for the release and hint at
possible future problems.

Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
[ wrap commit description and remove unecessary text ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/base-files/files/bin/ipcalc.sh

index 56854b4104105d1ecbebff93e16895e6124823e1..6e72617e1b2fba89fd0d8e21e7651b4dd4d22ad2 100755 (executable)
@@ -80,8 +80,7 @@ BEGIN {
        }
 
        if (ipaddr > start && ipaddr < end) {
-               print "ipaddr inside range" > "/dev/stderr"
-               exit(1)
+               print "warning: ipaddr inside range - this might not be supported in future releases of Openwrt" > "/dev/stderr"
        }
 
        print "START="int2ip(start)