mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-16 17:01:37 +00:00
30 lines
643 B
Bash
Executable File
30 lines
643 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
case "$(board_name)" in
|
|
"edgecore,oap101"|\
|
|
"edgecore,oap101e"|\
|
|
"edgecore,oap101-6e"|\
|
|
"edgecore,oap101e-6e")
|
|
uci set gps.@gps[-1].tty='ttyMSM1'
|
|
uci set gps.@gps[-1].adjust_time=0
|
|
uci set gps.@gps[-1].disabled=0
|
|
uci set gps.@gps[-1].baudrate=115200
|
|
;;
|
|
"cig,wf672")
|
|
uci set gps.@gps[-1].tty='ttyUSB0'
|
|
uci set gps.@gps[-1].adjust_time=0
|
|
uci set gps.@gps[-1].disabled=1
|
|
uci set gps.@gps[-1].baudrate=115200
|
|
;;
|
|
"cig,wf660a")
|
|
uci set gps.@gps[-1].tty='ttyMSM0'
|
|
uci set gps.@gps[-1].adjust_time=0
|
|
uci set gps.@gps[-1].disabled=1
|
|
uci set gps.@gps[-1].baudrate=9600
|
|
;;
|
|
esac
|
|
|
|
exit 0
|