mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
atftpd: Refactor init script
- Add local variables for read configuration - Convert uppercase to lowercase for local variables Signed-off-by: Jakub Raczynski <myszsoda@gmail.com>
This commit is contained in:
@@ -5,11 +5,15 @@ START=95
|
||||
PIDFILE=/tmp/run/atftpd.pid
|
||||
|
||||
start() {
|
||||
config_load atftpd
|
||||
config_get SRV service path "/srv/tftp"
|
||||
config_get PORT service port 69
|
||||
local srv
|
||||
local port
|
||||
|
||||
atftpd --pidfile $PIDFILE --user root.root --port $PORT --daemon $SRV
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user