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

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

adding if

File size: 819 bytes
Line 
1#!/bin/bash
2
3set -e
4
5
6if [ "$1" = "remove" ] ; then
7
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_MOD1_LLIUREX="/opt/lliurex-smart/notebook-bash-path"
12        BASH_MOD2="/opt/SMART Technologies/.store/smart-product-drivers/install/bash-path"
13        BASH_MOD2_DIVERTED="$BASH_MOD2.diverted"
14        BASH_MOD2_LLIUREX="/opt/lliurex-smart/product-drivers-bash-path"
15
16       
17        if [ -f "$BASH_MOD1_DIVERTED" ]; then
18                rm -rf "$BASH_MOD1"
19                dpkg-divert --remove --package ${PKG} --rename --divert "$BASH_MOD1_DIVERTED" "$BASH_MOD1"
20
21        fi
22
23        if [ -f "$BASH_MOD2_DIVERTED" ]; then
24                rm -rf "$BASH_MOD2"
25                dpkg-divert --remove --package ${PKG} --rename --divert "$BASH_MOD2_DIVERTED" "$BASH_MOD2"
26        fi
27
28elif
29
30        echo "Nothing to do."
31
32fi
33#DEBHELPER#
34
35exit 0
Note: See TracBrowser for help on using the repository browser.