diff options
Diffstat (limited to 'package/utils/ugps/files/ugps.init')
-rw-r--r-- | package/utils/ugps/files/ugps.init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/utils/ugps/files/ugps.init b/package/utils/ugps/files/ugps.init index 157043cc28..3cd1ca1b8d 100644 --- 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" |