8 lines
354 B
Bash
Executable file
8 lines
354 B
Bash
Executable file
#!/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
|
|
|
|
# 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
|