#!/bin/sh # postinst script for lliurex-starboard # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see https://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) dkms add starboard-lsadrv/1.0 dkms build starboard-lsadrv/1.0 dkms install starboard-lsadrv/1.0 dkms add starboard-coach/1.0 dkms build starboard-coach/1.0 dkms install starboard-coach/1.0 if [ -f "/usr/share/lliurex-starboard/usr-local-starboard_9_6_2.tar.xz" ]; then tar -C /usr/local/ -xJf /usr/share/lliurex-starboard/usr-local-starboard_9_6_2.tar.xz fi # OLD POSTINST FOR STARBOARD SOFTWARE mkdir -p /var/log/hitachi if [ -d /var/log/hitachi/ ]; then logfile="/var/log/hitachi/$$.install" else logfile="/tmp/hitach.starboard.install.$$" fi date=`date` echo "package StarBoardSoftware:Installed at $date" >>$logfile echo "PARAMETERS $* " >>$logfile /usr/local/StarBoardSoftware/installation-scripts/install.sh binary uspace app plgz >>$logfile 2>&1 dpkg-trigger gmenucache # if [ ! -f /lib/modules/`uname -r`/kernel/drivers/usb/input/lsadrv.ko ] # then # if ! grep Ubuntu /etc/issue > /dev/null # then # if [ -f /usr/share/debconf/confmodule ] # then # . /usr/share/debconf/confmodule # db_input high starBoardSoftware/moreinstallation || true # db_go # db_purge # db_go # else # echo "*********************************************" # echo "*" # echo "* Please run /usr/local/StarBoardSoftware/install.sh " # echo "*" # echo "*********************************************" # fi # fi # else # if [ -f /usr/share/update-notifier/notify-reboot-required ] # then # /usr/share/update-notifier/notify-reboot-required # else # touch /var/run/reboot-required # fi # fi ;; abort-upgrade|abort-remove|abort-deconfigure) rm -rf /var/log/hitachi ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0