target: socfpga: Add Altera SoCFPGA support
[openwrt.git] / target / linux / socfpga / base-files / etc / init.d / sockit_vtcon
diff --git a/target/linux/socfpga/base-files/etc/init.d/sockit_vtcon b/target/linux/socfpga/base-files/etc/init.d/sockit_vtcon
new file mode 100755 (executable)
index 0000000..6555f5b
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh /etc/rc.common
+
+START=99
+
+start() {
+       . /lib/socfpga.sh
+
+       local board=$(socfpga_board_name)
+
+       # Print something nice on the VTcon (the SPI LCD)
+       if [ "${board}" = "socfpga-sockit" ] ; then
+               echo "OpenWRT" > /dev/tty0
+               uci show network.lan.ipaddr > /dev/tty0
+       fi
+}