From 01cfe5572f6cfc172dddc013494511a59a7ed85f Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Thu, 18 Feb 2010 20:22:23 +0100 Subject: Fix NFS backward-compatibility with kinit NFS options of the style nfsaddrs=* and ip=dhcp (without the long : syntax) used to be supported by kinit, but were undocumented in Arch's help. This change hopefully restores full compatibility with old kinit configurations. --- hooks/net | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hooks') 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 -- cgit v1.2.3-24-g4f1b