#!/bin/bash if diff /data/start-gui.sh /opt/victronenergy/gui/start-gui.sh >/dev/null; then echo "no software update detected, exiting" else opkg update opkg install qt4-embedded-plugin-mousedriver-tslib opkg install tslib-calibrate opkg install tslib-conf opkg install tslib-tests TSLIB_PLUGINDIR=/usr/lib/ts ts_calibrate rm /opt/victronenergy/gui/start-gui.sh cp /data/start-gui.sh /opt/victronenergy/gui/start-gui.sh mv /etc/venus/headless /etc/venus/headless.off // opkg install kernel-module-rpi-backlight cp /data/backlight_device /etc/venus/backlight_device cp /data/blank_display_device /etc/venus/blank_display_device rm /etc/venus/gpio_list cp /data/gpio_list /etc/venus/gpio_list cp /data/PageSettingsRelay.qml /opt/victronenergy/gui/qml/PageSettingsRelay.qml cp /data/relaystate.py /opt/victronenergy/dbus-systemcalc-py/delegates/relaystate.py cp /data/relaystate.pyc /opt/victronenergy/dbus-systemcalc-py/delegates/relaystate.pyc cp /data/PageMain.qml /opt/victronenergy/gui/qml/PageMain.qml cp /data/PageSwitching.qml /opt/victronenergy/gui/qml/PageSwitching.qml cp -r /data/dbus-adc /opt/victronenergy cp /data/dbus-adc.conf /etc/venus chmod 755 /opt/victronenergy/dbus-adc/start-adc.sh chmod 755 /opt/victronenergy/dbus-adc/dbus-adc chmod 755 /opt/victronenergy/dbus-adc/service/run chmod 755 /opt/victronenergy/dbus-adc/log/run touch /var/log/dbus-adc ln -s /opt/victronenergy/dbus-adc/service /service/dbus-adc cp -r /data/bin /usr/local/bin cp /data/canbus_ports /etc/venus cp /data/slcan.rules /etc/udev/rules.d cp -r /data/can-bus-bms /opt/victronenergy cp -r /data/dbus-motordrive /opt/victronenergy cp -r /data/dbus-valence /opt/victronenergy cp -r /data/vecan-dbus /opt/victronenergy cp -r /data/mqtt-n2k /opt/victronenergy ln -s /opt/victronenergy/can-bus-bms/service /service/can-bus-bms.can0 ln -s /opt/victronenergy/dbus-motordrive/service /service/dbus-motordrive.can0 ln -s /opt/victronenergy/dbus-valence/service /service/dbus-valence.can0 ln -s /opt/victronenergy/vecan-dbus/service /service/vecan-dbus.can0 ln -s /opt/victronenergy/mqtt-n2k/service /service/mqtt-n2k.can0 chmod 755 /usr/local/bin/slcan_remove.sh chmod 755 /usr/local/bin/canusb_add.sh chmod 755 /etc/udev/rules.d/slcan.rules //cp /data/overview-generator.png /opt/victronenergy/themes/ccgx/images/overview-generator.png //cp /data/splash.png /opt/victronenergy/gui/splash.png //cp /data/OverviewGenerator.qml /opt/victronenergy/gui/qml/OverviewGenerator.qml //cp /data/PageGenerator.qml /opt/victronenergy/gui/qml/PageGenerator.qml //cp /data/PageMain.qml /opt/victronenergy/gui/qml/PageMain.qml //cp /data/PageSettingsGeneral.qml /opt/victronenergy/gui/qml/PageSettingsGeneral.qml //cp /data/PageTankSensor.qml /opt/victronenergy/gui/qml/PageTankSensor.qml //cp /data/PageTankSetup.qml /opt/victronenergy/gui/qml/PageTankSetup.qml //cp /data/PageTemperatureSensor.qml /opt/victronenergy/gui/qml/PageTemperatureSensor.qml //cp /data/PageTemperatureSensorSetup.qml /opt/victronenergy/gui/qml/PageTemperatureSensorSetup.qml //cp /data/TileTank.qml /opt/victronenergy/gui/qml/TileTank.qml reboot fi