Skip to content

Commit

Permalink
Adding slightly modified patch from Steven Shiau <steven@nchc.org.tw>…
Browse files Browse the repository at this point in the history
… to transition to /run for network interface definition files which fixes resolv.conf creation for netboot.
  • Loading branch information
daniel-baumann committed Aug 7, 2012
1 parent c258d19 commit c9ff5aa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/boot/9990-networking.sh
Expand Up @@ -110,7 +110,13 @@ do_netsetup ()
else
for interface in ${DEVICE}; do
ipconfig -t "$ETHDEV_TIMEOUT" ${interface} | tee /netboot-${interface}.config

# squeeze
[ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf

# wheezy
[ -e /run/net-${interface}.conf ] && . /run/net-${interface}.conf

if [ "$IPV4ADDR" != "0.0.0.0" ]
then
break
Expand All @@ -122,7 +128,13 @@ do_netsetup ()
do
# source relevant ipconfig output
OLDHOSTNAME=${HOSTNAME}

# squeeze
[ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf

# wheezy
[ -e /run/net-${interface}.conf ] && . /run/net-${interface}.conf

[ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME}
export HOSTNAME

Expand Down

0 comments on commit c9ff5aa

Please sign in to comment.