1. recipe:
  2. pkg_postinst_${PN}_append () {
  3. sed -i -e "s|log/mpd|log/mpd/mpd|" $D${sysconfdir}/mpd.conf
  4. chown mpd:mpd $D${localstatedir}/lib/mpd
  5. }
  6. postinstfile (inside ipk):
  7. sed -i -e "s|log/mpd|log/mpd/mpd|" $D/etc/mpd.conf
  8. chown mpd:mpd $D/var/lib/mpd
  9. if test "x$D" != "x"; then
  10. OPT="-r $D"
  11. else
  12. OPT="-s"
  13. fi
  14. if type update-rc.d >/dev/null 2>/dev/null; then
  15. update-rc.d $OPT mpd defaults 75
  16. fi
Comments powered by Disqus