[openwrt/openwrt] package: base-files: turn error into warning

LEDE Commits lede-commits at lists.infradead.org
Tue Sep 19 06:39:37 PDT 2023


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/83bf45ea5cacabc2ec7060be6ab5115b871a7c21

commit 83bf45ea5cacabc2ec7060be6ab5115b871a7c21
Author: Leon M. Busch-George <leon at georgemail.eu>
AuthorDate: Sun Aug 20 21:08:20 2023 +0200

    package: base-files: 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 <leon at georgemail.eu>
    [ wrap commit description and remove unecessary text ]
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 package/base-files/files/bin/ipcalc.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh
index 56854b4104..6e72617e1b 100755
--- a/package/base-files/files/bin/ipcalc.sh
+++ b/package/base-files/files/bin/ipcalc.sh
@@ -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)




More information about the lede-commits mailing list