From: Leon M. George Date: Fri, 14 Oct 2022 12:09:34 +0000 (+0200) Subject: base-files: ipcalc.sh: fix awk regex syntax X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=67d2a7ef9ed7f70a962264167527b383ad637303;p=openwrt%2Fstaging%2Fjow.git base-files: ipcalc.sh: fix awk regex syntax It worked fine before but gawk warns about it. Signed-off-by: Leon M. George --- diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh index 99269fff06..56854b4104 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -11,7 +11,7 @@ function bitcount(c) { function ip2int(ip) { ret=0 - n=split(ip,a,"\.") + n=split(ip,a,"\\.") for (x=1;x<=n;x++) ret=or(lshift(ret,8),a[x]) return ret