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

#!/bin/sh /etc/rc.common
# Copyright (C) 2020 OpenWrt.org
START=95
PIDFILE=/tmp/run/atftpd.pid
start() {
config_load atftpd
config_get SRV service path "/srv/tftp"
config_get PORT service port 69
atftpd --pidfile $PIDFILE --user root.root --port $PORT --daemon $SRV
}
stop() {
kill $(cat $PIDFILE)
}