Skip to content

Commit

Permalink
package: base-files: turn error into warning
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
yogo1212 authored and Ansuel committed Sep 19, 2023
1 parent 829196e commit 83bf45e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions package/base-files/files/bin/ipcalc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 83bf45e

Please sign in to comment.