#! /bin/sh set -e NET_IFACES="/etc/network/interfaces" if [ -f "${NET_IFACES}" ]; then cp -a "${NET_IFACES}" "/target${NET_IFACES}" sed -i -e "/^[[:blank:]]*iface[[:blank:]]/s%manual%dhcp%" "/target${NET_IFACES}" fi exit 0