lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit 4a752d7f6fc0804ca68889757ee6998b082843dd
parent 6d218d4918d031a173507eca94fbfb2e22f24ac8
Author: p-wassi <p.wassi@gmx.at>
Date:   Sat,  4 Mar 2017 12:06:22 +0100

utils/gpsd: fix init script

Add missing character in init script to match config file

Signed-off-by: Paul Wassi <p.wassi@gmx.at>

Diffstat:
Mutils/gpsd/files/gpsd.init | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/utils/gpsd/files/gpsd.init b/utils/gpsd/files/gpsd.init @@ -9,7 +9,7 @@ NAME=gpsd validate_section_gpsd() { uci_validate_section gpsd gpsd "${1}" \ - 'enable:bool:1' \ + 'enabled:bool:1' \ 'device:string' \ 'listen_globally:bool:0' \ 'port:port:2947' @@ -17,14 +17,14 @@ validate_section_gpsd() gpsd_instance() { - local device enable listen_globally port + local device enabled listen_globally port validate_section_gpsd "${1}" || { echo "validation failed" return 1 } - [ "${enable}" = "0" ] && return 1 + [ "${enabled}" = "0" ] && return 1 procd_open_instance procd_set_param command "$PROG" -N -n