1 2 3 4 5 6 7 8 9 10 11 12
#!/sbin/openrc-run description="Sets service-specific defaults." start() { ebegin "Setting defaults" . /etc/udhcpc/udhcpc.conf if [ ! -s "$UDHCPD_CONF" ] ; then sed 's|%%DNS%%||' < "$UDHCPD_CONF_TEMPLATE" > "$UDHCPD_CONF" fi eend $? }