aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/ugps/files/ugps.init
diff options
context:
space:
mode:
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
}