From 2194ff572fddb1928bf137a6ec18f0c5e60af7fb Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Thu, 23 Apr 2026 10:38:06 +0200 Subject: [PATCH] base-files: ipcalc.sh: get rid of `basename` dependency The netifd/dhcp flow uses this, and as uxc mounts netifd in a container, this allows not mounting `basename` for just a usage. References: https://github.com/openwrt/procd/pull/34 Suggested-by: Daniel Golle Signed-off-by: Andre Heider --- package/base-files/files/bin/ipcalc.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh index e8c7a07df6..c698224f19 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -2,8 +2,6 @@ . /lib/functions/ipv4.sh -PROG="$(basename "$0")" - # wrapper to convert an integer to an address, unless we're using # decimal output format. # hook for library function @@ -21,7 +19,7 @@ _ip2str() { } usage() { - echo "Usage: $PROG [ -d | -x ] address/prefix [ start limit ]" >&2 + echo "Usage: ${0##*/} [ -d | -x ] address/prefix [ start limit ]" >&2 exit 1 }