mpd_confdir="%%CONFDIR%%" 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 }