From: Leon M. George Date: Thu, 5 May 2022 22:03:54 +0000 (+0200) Subject: base-files: ipcalc.sh: use shebang to invoke awk X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6ce9f42b9819b93717d7425ca4135afec6ea43af;p=openwrt%2Fstaging%2Fthess.git base-files: ipcalc.sh: use shebang to invoke awk There's hardly an shell logic in ipcalc.sh and a $* that would garble parameter positions. Move the awk invokation to the shebang. A rename from "ipcalc.sh" to "ipcalc" is desirable but could prove tricky with packages in other repositories depending on the filename. 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 b21b6e28dc..e818e67803 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -1,6 +1,5 @@ -#!/bin/sh +#!/usr/bin/awk -f -awk -f - $* <