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.

17 lines
309 B

  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2020 OpenWrt.org
  3. START=95
  4. PIDFILE=/tmp/run/atftpd.pid
  5. start() {
  6. config_load atftpd
  7. config_get SRV service path "/srv/tftp"
  8. config_get PORT service port 69
  9. atftpd --pidfile $PIDFILE --user root.root --port $PORT --daemon $SRV
  10. }
  11. stop() {
  12. kill $(cat $PIDFILE)
  13. }