#!/bin/sh -x if=eth0 # Manually configure the first ethernet device cat >/etc/network/interfaces.d/"$if"<