# Configure network interface

rm -rf /tmp/dropcmd
wget -O /etc/opt/netconfigure http://10.0.2.100/netconfig.sh
wget -O /tmp/dropcmd -q http://10.0.2.100/delDefaultIface
if [[ -s "/tmp/dropcmd" ]]
then
  echo "nameserver 8.8.8.8" > /etc/resolv.conf
  /sbin/ip route del default
fi
bash /etc/opt/netconfigure
