# prohibit network-manager from messing with the boot interface
if [ -w "/etc/network/interfaces" ] && [ -n "$DEVICE" ]; then
        cat >/etc/network/interfaces <<EOF
# Dynamically generated by LTSP.
auto lo
iface lo inet loopback

auto $DEVICE
iface $DEVICE inet ${NET_DEVICE_METHOD:-"manual"}
EOF
fi
