#!/bin/sh SMART_NOTEBOOK="/opt/SMART Technologies/Notebook Software/bin/Notebook/notebook" LLIUREX_SMART="/usr/bin/lliurex-notebook" case "$1" in configure) # Sanity checks, testing previous installations if [ ! -L "${SMART_NOTEBOOK}" ]; then mv "${SMART_NOTEBOOK}" "${SMART_NOTEBOOK}".bkp ln -s "${LLIUREX_SMART}" "${SMART_NOTEBOOK}" else echo "[ LliureX Smart ] : Link is done, nothing to do" if [ -L "${SMART_NOTEBOOK}.bkp" ]; then echo "[ LliureX Smart ] , your origins are dark ... smart-notebook reinstall is needed" echo "[ LliureX Smart ] , for if the flies ...remove the loop of the dead" echo "[ Loop of the Dead detected... removing it ]" rm -f "${SMART_NOTEBOOK}.bkp" || true fi fi ;; abort-upgrade|abort-remove|abort-deconfigure) exit 0 ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 0 ;; esac #DEBHELPER# exit 0