Browse Source

base-files: ipcalc.sh: turn error into warning

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 <[email protected]>
[ wrap commit description and remove unecessary text ]
Signed-off-by: Christian Marangi <[email protected]>
Leon M. Busch-George 2 năm trước cách đây
mục cha
commit
270f694f11

+ 3 - 2
package/base-files/files/bin/ipcalc.sh

@@ -90,8 +90,9 @@ BEGIN {
 	}
 	}
 
 
 	if (ipaddr > start && ipaddr < end) {
 	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"
+		# turn this into an error after Openwrt 24 has been released
+		# exit(1)
 	}
 	}
 
 
 	print "START="int2ip(start)
 	print "START="int2ip(start)