19 lines
365 B
Text
19 lines
365 B
Text
mpd_confdir="%%PREFIX%%/%%CONF_DIR%%"
|
|
mpd_rundir="/var/run"
|
|
|
|
mpd_enable="YES"
|
|
mpd_flags="-b -d ${mpd_confdir}"
|
|
|
|
stop_precmd="mpd_prestop"
|
|
|
|
mpd_prestop()
|
|
{
|
|
local ifaces
|
|
|
|
ifaces=$(find ${mpd_rundir} -name dhcp6c.conf.\* -print | \
|
|
sed -e "s|${mpd_rundir}/dhcp6c\.conf\.||")
|
|
for iface in ${ifaces}; do
|
|
${mpd_confdir}/dhcp6c_pd.sh stop ${iface}
|
|
done
|
|
sleep 2
|
|
}
|