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-Tag: v23.05.0-rc1~1058 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9857%2Fhead;p=thirdparty%2Fopenwrt.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 99269fff066..56854b41041 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