summaryrefslogtreecommitdiff
path: root/aports/busybox/defaults.initd
diff options
context:
space:
mode:
Diffstat (limited to 'aports/busybox/defaults.initd')
-rw-r--r--aports/busybox/defaults.initd12
1 files changed, 12 insertions, 0 deletions
diff --git a/aports/busybox/defaults.initd b/aports/busybox/defaults.initd
new file mode 100644
index 0000000..a92a942
--- /dev/null
+++ b/aports/busybox/defaults.initd
@@ -0,0 +1,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 $?
+}