aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/ugps/files/ugps.init
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-10-22 22:13:06 +0200
committerJohn Crispin <john@phrozen.org>2016-10-26 12:37:40 +0200
commit7b9ac39afa48a4ffd9858c43d93106771447aa0b (patch)
treefe816ca0d442da4f49850b685a0a6a0bc0c23be0 /package/utils/ugps/files/ugps.init
parent5481ce9a1157a43d8b2c963e03fb243e70974361 (diff)
downloadupstream-7b9ac39afa48a4ffd9858c43d93106771447aa0b.tar.gz
upstream-7b9ac39afa48a4ffd9858c43d93106771447aa0b.tar.bz2
upstream-7b9ac39afa48a4ffd9858c43d93106771447aa0b.zip
ugps: update to latest git HEAD
* fixes a few error that uClibc users were seeing * add switch to disable time adjustment Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/utils/ugps/files/ugps.init')
-rw-r--r--package/utils/ugps/files/ugps.init2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/utils/ugps/files/ugps.init b/package/utils/ugps/files/ugps.init
index 621d017869..a7a88c2258 100644
--- a/package/utils/ugps/files/ugps.init
+++ b/package/utils/ugps/files/ugps.init
@@ -12,11 +12,13 @@ service_triggers() {
start_service() {
local tty="$(uci get gps.@gps[-1].tty)"
+ local atime="$(uci get gps.@gps[-1].adjust_time)"
[ -d "/sys/class/tty/$tty/" ] || return
procd_open_instance
procd_set_param command "$PROG" "/dev/$tty"
+ [ "$atime" -eq 0 ] || procd_append_param command "-a"
procd_set_param respawn
procd_close_instance
}