source: lliurex-smart/trunk/fuentes/debian/lliurex-smart.postinst @ 613

Last change on this file since 613 was 613, checked in by daduve, 4 years ago

Add files

File size: 924 bytes
Line 
1#!/bin/sh
2
3
4SMART_NOTEBOOK="/opt/SMART Technologies/Notebook Software/bin/Notebook/notebook"
5LLIUREX_SMART="/usr/bin/lliurex-notebook"
6
7
8
9case "$1" in
10
11        configure)
12               
13                # Sanity checks, testing previous installations
14
15                if [ ! -L "${SMART_NOTEBOOK}" ]; then
16
17                        mv "${SMART_NOTEBOOK}" "${SMART_NOTEBOOK}".bkp
18                        ln -s "${LLIUREX_SMART}" "${SMART_NOTEBOOK}"
19
20                else
21
22                        echo "[ LliureX Smart ] : Link is done, nothing to do"
23                        if [ -L "${SMART_NOTEBOOK}.bkp" ]; then
24                                echo "[ LliureX Smart ] , your origins are dark ... smart-notebook reinstall is needed"
25                                echo "[ LliureX Smart ] , for if the flies ...remove the loop of the dead"
26                                echo "[ Loop of the Dead detected... removing it ]"
27                                rm -f "${SMART_NOTEBOOK}.bkp" || true
28                        fi
29
30                fi
31                ;;
32
33        abort-upgrade|abort-remove|abort-deconfigure)
34       
35                exit 0
36                ;;
37
38        *)
39               
40                echo "postinst called with unknown argument \`$1'" >&2
41                exit 0
42        ;;
43
44esac
45
46
47#DEBHELPER#
48
49exit 0
Note: See TracBrowser for help on using the repository browser.