2
0

mountd.init 296 B

12345678910111213141516171819202122
  1. #!/bin/sh /etc/rc.common
  2. START=80
  3. SERVICE_DAEMONIZE=1
  4. SERVICE_WRITE_PID=1
  5. SERVICE_PID_FILE=/var/run/mountd.pid
  6. MOUNTD_BIN=/sbin/mountd
  7. start()
  8. {
  9. P="$(uci get mountd.mountd.path)"
  10. [ -n "$P" -a ! -f "$P" ] && mkdir -p $P
  11. service_start $MOUNTD_BIN -f
  12. }
  13. stop()
  14. {
  15. service_stop $MOUNTD_BIN
  16. }