Skip to content

Commit b79760f

Browse files
committed
Merge pull request #6 from grazzolini/develop
Develop
2 parents 0cb647a + 4a3ab10 commit b79760f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

netconf_hook

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ run_hook ()
1111
fi
1212

1313
if [ -n "${ip}" ]; then
14-
# setup network and save some values
15-
ipconfig "ip=${ip}" | while read line; do
14+
if [ -n "$netconf_timeout" ]; then
15+
ipconfig_cmd="ipconfig -t $netconf_timeout ip=${ip}"
16+
else
17+
ipconfig_cmd="ipconfig ip=${ip}"
18+
fi
19+
# setup network and save some values
20+
$ipconfig_cmd | while read line; do
1621
if [ "${line#"IP-Config:"}" != "${line}" ]; then
1722
continue
1823
fi

0 commit comments

Comments
 (0)