2019-01-10 03:48:30 +00:00
|
|
|
#!/bin/sh
|
|
|
|
## Run getty on serial port
|
|
|
|
sed -i -e "s/#ttyS0::respawn:\/sbin\/getty -L ttyS0 115200 vt100/ttymxc0::respawn:\/sbin\/getty -L ttymxc0 115200 vt100/" /etc/inittab
|
|
|
|
|
2019-02-02 02:32:37 +00:00
|
|
|
# Enable GPS support
|
|
|
|
rc-update add gpsd default
|
|
|
|
sed -i 's/DEVICE=\"\"/DEVICE=\"\/dev\/ttymxc2\"/' /etc/conf.d/gpsd
|
|
|
|
sed -i 's/BAUDRATE=\"4800\"/BAUDRATE=\"9600\"/' /etc/conf.d/gpsd
|