ensure basic internet config still works with private networking on

This commit is contained in:
gh2o 2014-07-19 17:51:01 -07:00
parent 6f77656033
commit c0941d3492
1 changed files with 3 additions and 3 deletions

View File

@ -238,9 +238,9 @@ postbootstrap_configuration() {
local ipaddr netmask gateway prefixlen=24
local eni=/etc/network/interfaces
exec {grepfd}< <(
grep -o 'address [0-9.]\+' ${eni}
grep -o 'netmask [0-9.]\+' ${eni}
grep -o 'gateway [0-9.]\+' ${eni}
grep -m 1 -o 'address [0-9.]\+' ${eni}
grep -m 1 -o 'netmask [0-9.]\+' ${eni}
grep -m 1 -o 'gateway [0-9.]\+' ${eni}
)
read ignored ipaddr <&${grepfd}
read ignored netmask <&${grepfd}