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

Last change on this file since 3184 was 3184, checked in by hectorgh, 3 years ago

fixing profile

File size: 621 bytes
Line 
1#!/bin/bash
2
3set -e
4
5
6if [ "$1" = "remove" ] ; then
7        PKG="lliurex-smart"
8
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       
15        if [ -f "$BASH_MOD1_DIVERTED" ]; then
16                dpkg-divert --remove --package ${PKG} --rename --divert "$BASH_MOD1_DIVERTED" "$BASH_MOD1"
17
18        fi
19
20        if [ -f "$BASH_MOD2_DIVERTED" ]; then
21
22                dpkg-divert --remove --package ${PKG} --rename --divert "$BASH_MOD2_DIVERTED" "$BASH_MOD2"
23        fi
24
25fi
26#DEBHELPER#
27
28exit 0
Note: See TracBrowser for help on using the repository browser.