target: socfpga: Add Altera SoCFPGA support
[openwrt.git] / target / linux / socfpga / base-files / etc / init.d / sockit_vtcon
1 #!/bin/sh /etc/rc.common
2
3 START=99
4
5 start() {
6         . /lib/socfpga.sh
7
8         local board=$(socfpga_board_name)
9
10         # Print something nice on the VTcon (the SPI LCD)
11         if [ "${board}" = "socfpga-sockit" ] ; then
12                 echo "OpenWRT" > /dev/tty0
13                 uci show network.lan.ipaddr > /dev/tty0
14         fi
15 }