summaryrefslogtreecommitdiff
path: root/aports/busybox/defaults.initd
diff options
context:
space:
mode:
authorPÁLI Gábor János <pali.gabor@gmail.com>2023-09-26 10:03:48 +0200
committerPÁLI Gábor János <pali.gabor@gmail.com>2023-09-26 11:53:45 +0200
commit2646128d92561b62fe4ea863aee9cad4b5fa8eda (patch)
tree122092ba14f8db06bd69c5110112d2494b320d38 /aports/busybox/defaults.initd
parentfdf0ee1aed41faf765016b4571a5d0cadaac70fa (diff)
downloadfreebsd-wifibox-alpine-2646128d92561b62fe4ea863aee9cad4b5fa8eda.zip
Implement daisy-chaining of `dhcpcd` and `radvd`
Diffstat (limited to 'aports/busybox/defaults.initd')
-rw-r--r--aports/busybox/defaults.initd6
1 files changed, 6 insertions, 0 deletions
diff --git a/aports/busybox/defaults.initd b/aports/busybox/defaults.initd
index a92a942..c11316b 100644
--- a/aports/busybox/defaults.initd
+++ b/aports/busybox/defaults.initd
@@ -8,5 +8,11 @@ start() {
if [ ! -s "$UDHCPD_CONF" ] ; then
sed 's|%%DNS%%||' < "$UDHCPD_CONF_TEMPLATE" > "$UDHCPD_CONF"
fi
+ if [ -f /etc/conf.d/radvd ]; then
+ . /etc/conf.d/radvd
+ if [ ! -s "$CONFIGFILE" ]; then
+ sed 's|%%DNS%%||' < "$CONFIGFILE_TEMPLATE" > "$CONFIGFILE"
+ fi
+ fi
eend $?
}