You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
679 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2009-2012 OpenWrt.org
  3. START=60
  4. start() {
  5. [ -d /var/run/dmapd ] || {
  6. mkdir -m 0755 -p /var/run/dmapd
  7. chown dmapd:dmapd /var/run/dmapd
  8. }
  9. [ -d /var/db/dmapd/DAAP ] || {
  10. mkdir -m 0755 -p /var/db/dmapd/DAAP
  11. chown dmapd:dmapd /var/db/dmapd/DAAP
  12. }
  13. [ -d /var/db/dmapd/DPAP ] || {
  14. mkdir -m 0755 -p /var/db/dmapd/DPAP
  15. chown dmapd:dmapd /var/db/dmapd/DPAP
  16. }
  17. mkdir -m 0755 -p /var/lock/subsys
  18. mkdir -m 0755 -p /var/media/music
  19. mkdir -m 0755 -p /var/media/pictures
  20. service_start /usr/sbin/dmapd -u dmapd -g dmapd -m /var/media/music -p /var/media/pictures --vips-disc-threshold 64k
  21. }
  22. stop() {
  23. service_stop /usr/sbin/dmapd
  24. }