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 <daniel@makrotopia.org>
Signed-off-by: Andre Heider <a.heider@gmail.com>
. /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
}
usage() {
- echo "Usage: $PROG [ -d | -x ] address/prefix [ start limit ]" >&2
+ echo "Usage: ${0##*/} [ -d | -x ] address/prefix [ start limit ]" >&2
exit 1
}