utils/gpsd: fix init script
authorp-wassi <redacted>
Sat, 4 Mar 2017 11:06:22 +0000 (12:06 +0100)
committerp-wassi <redacted>
Sat, 4 Mar 2017 11:06:22 +0000 (12:06 +0100)
Add missing character in init script to match config file

Signed-off-by: Paul Wassi <redacted>
utils/gpsd/files/gpsd.init

index b7d9ec3e85c13b75e3fb0a5415c74cff0296d514..c4b709c94d9a4c37a63a83bdd1b3e0807069deb7 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT