diff options
Diffstat (limited to 'target/linux/socfpga/base-files/etc/init.d/sockit_vtcon')
-rwxr-xr-x | target/linux/socfpga/base-files/etc/init.d/sockit_vtcon | 15 |
1 files changed, 15 insertions, 0 deletions
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 index 0000000000..6555f5b348 --- /dev/null +++ b/target/linux/socfpga/base-files/etc/init.d/sockit_vtcon @@ -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 +} |