aboutsummaryrefslogtreecommitdiff
path: root/init.d/net.lo.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/net.lo.in')
-rw-r--r--init.d/net.lo.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index 07524002..de393bd1 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -169,6 +169,18 @@ _configure_variables()
done
}
+_which()
+{
+ local i OIFS
+ [ -z "$1" ] && return
+ OIFS="$IFS"
+ IFS=:
+ for i in $PATH ; do
+ [ -x $i/$1 ] && echo $i/$1 && break
+ done
+ IFS=$OIFS
+}
+
_show_address()
{
einfo "received address $(_get_inet_address "${IFACE}")"