#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. /usr/local/bin/gen-friendlyelec-release . /etc/friendlyelec-release if [ ! -f /etc/firstuse ]; then /bin/echo ${BOARD} > /etc/hostname /bin/sed -i "s/\(127.0.1.1\s*\).*/\1${BOARD}/g" /etc/hosts /bin/hostname ${BOARD} /bin/echo "0" > /etc/firstuse fi if [ -e /usr/bin/setqtenv ]; then . /usr/bin/setqtenv /usr/bin/lcd2usb_print "CPU: {{CPU}}" "Mem: {{MEM}}" "IP: {{IP}}" "LoadAvg: {{LOADAVG}}" 2>&1 > /dev/null& #/opt/QtE-Demo/run.sh& fi /root/gpio.sh exit 0