blob: c11316b1b5e72d5eecdc34020336fc269fe10741 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/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
if [ -f /etc/conf.d/radvd ]; then
. /etc/conf.d/radvd
if [ ! -s "$CONFIGFILE" ]; then
sed 's|%%DNS%%||' < "$CONFIGFILE_TEMPLATE" > "$CONFIGFILE"
fi
fi
eend $?
}
|