summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hooks/net6
1 files changed, 5 insertions, 1 deletions
diff --git a/hooks/net b/hooks/net
index d2085c7..6022192 100644
--- a/hooks/net
+++ b/hooks/net
@@ -5,9 +5,13 @@ run_hook ()
: > /ip_opts
+ if [ -z "${ip}" -a -n "${nfsaddrs}" ]; the
+ export ip="${nfsaddrs}"
+ fi
+
if [ -n "${ip}" ]; then
# setup network and save some values
- ipconfig "${ip}" | while read line; do
+ ipconfig "ip=${ip}" | while read line; do
# echo ":: ${line}"
if [ "${line#"IP-Config:"}" != "${line}" ]; then
continue