projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ugps: Add option disabled
[openwrt/openwrt.git]
/
package
/
utils
/
ugps
/
files
/
ugps.init
diff --git
a/package/utils/ugps/files/ugps.init
b/package/utils/ugps/files/ugps.init
index 157043cc283ee1be77a0f6393e02baf89b64bd3b..3cd1ca1b8d2da7960ded8e4c3c2a222705350d08 100644
(file)
--- a/
package/utils/ugps/files/ugps.init
+++ b/
package/utils/ugps/files/ugps.init
@@
-13,6
+13,9
@@
service_triggers() {
start_service() {
local tty="$(uci get gps.@gps[-1].tty)"
local atime="$(uci get gps.@gps[-1].adjust_time)"
+ local disabled="$(uci get gps.@gps[-1].disabled || echo 0)"
+
+ [ "$disabled" == "0" ] || return
[ -c "$tty" ] || {
tty="/dev/$tty"