source: lliurex-smart/trunk/fuentes/debian/lliurex-smart64.prerm @ 6748

Last change on this file since 6748 was 6748, checked in by hectorgh, 20 months ago

trying to fix the universe

File size: 1.3 KB
Line 
1#!/bin/bash
2
3set -e
4
5
6case "$1" in
7    remove)
8        PKG="lliurex-smart"
9        BASH_MOD1="/opt/SMART Technologies/.store/smart-notebook/install/bash-path"
10        BASH_MOD1_DIVERTED="$BASH_MOD1.diverted"
11        BASH_MOD2="/opt/SMART Technologies/.store/smart-product-drivers/install/bash-path"
12        BASH_MOD2_DIVERTED="$BASH_MOD2.diverted"
13       
14        LLIUREX_NOTEBOOK_LINK="/opt/lliurex-smart/notebook-software"
15        LLIUREX_SMARTDRIVERS_LINK="/opt/lliurex-smart/smart-product-drivers"
16
17        NOTEBOOK_PATH="/opt/SMART Technologies/Notebook Software/bin"
18        SMARTDRIVERS_PATH="/opt/SMART Technologies/SMART Product Drivers/bin"
19
20        # DISABLE DIVERSIONS
21       
22        if [ -f "$BASH_MOD1_DIVERTED" ]; then
23                rm -rf "$BASH_MOD1"
24                dpkg-divert --remove --package ${PKG} --rename --divert "$BASH_MOD1_DIVERTED" "$BASH_MOD1"
25        fi
26
27        if [ -f "$BASH_MOD2_DIVERTED" ]; then
28                rm -rf "$BASH_MOD2"
29                dpkg-divert --remove --package ${PKG} --rename --divert "$BASH_MOD2_DIVERTED" "$BASH_MOD2"
30        fi
31       
32        # ################## #
33       
34       
35        if [ -L "$LLIUREX_NOTEBOOK_LINK" ];then
36                rm -rf "$LLIUREX_NOTEBOOK_LINK"
37        fi
38
39        if [ -L "$LLIUREX_SMARTDRIVERS_LINK" ];then
40                rm -rf "$LLIUREX_SMARTDRIVERS_LINK"
41        fi
42       
43    ;;
44
45    failed-upgrade)
46    ;;
47   
48    upgrade|deconfigure)
49    ;;
50
51    *)
52        echo "prerm called with unknown argument \`$1'" >&2
53        exit 1
54    ;;
55esac
56
57
58
59#DEBHELPER#
60
61exit 0
Note: See TracBrowser for help on using the repository browser.