Merge pull request #4104 from p-wassi/gpsd_typo
utils/gpsd: fix init script
This commit is contained in:
commit
eed9884b74
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ NAME=gpsd
|
||||||
validate_section_gpsd()
|
validate_section_gpsd()
|
||||||
{
|
{
|
||||||
uci_validate_section gpsd gpsd "${1}" \
|
uci_validate_section gpsd gpsd "${1}" \
|
||||||
'enable:bool:1' \
|
'enabled:bool:1' \
|
||||||
'device:string' \
|
'device:string' \
|
||||||
'listen_globally:bool:0' \
|
'listen_globally:bool:0' \
|
||||||
'port:port:2947'
|
'port:port:2947'
|
||||||
|
@ -17,14 +17,14 @@ validate_section_gpsd()
|
||||||
|
|
||||||
gpsd_instance()
|
gpsd_instance()
|
||||||
{
|
{
|
||||||
local device enable listen_globally port
|
local device enabled listen_globally port
|
||||||
|
|
||||||
validate_section_gpsd "${1}" || {
|
validate_section_gpsd "${1}" || {
|
||||||
echo "validation failed"
|
echo "validation failed"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "${enable}" = "0" ] && return 1
|
[ "${enabled}" = "0" ] && return 1
|
||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command "$PROG" -N -n
|
procd_set_param command "$PROG" -N -n
|
||||||
|
|
Loading…
Reference in a new issue