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

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

diversions changes

File size: 789 bytes
RevLine 
[3184]1#!/bin/bash
2
3set -e
4
5
6if [ "$1" = "remove" ] ; then
[3189]7
[3184]8        PKG="lliurex-smart"
9        BASH_MOD1="/opt/SMART Technologies/.store/smart-notebook/install/bash-path"
10        BASH_MOD1_DIVERTED="$BASH_MOD1.diverted"
[3189]11        BASH_MOD1_LLIUREX="/opt/lliurex-smart/notebook-bash-path"
[3184]12        BASH_MOD2="/opt/SMART Technologies/.store/smart-product-drivers/install/bash-path"
13        BASH_MOD2_DIVERTED="$BASH_MOD2.diverted"
[3189]14        BASH_MOD2_LLIUREX="/opt/lliurex-smart/product-drivers-bash-path"
[3184]15
16       
[3223]17        if [ -f "$BASH_MOD1_DIVERTED" ]; then
[3189]18                rm -rf "$BASH_MOD1"
[3184]19                dpkg-divert --remove --package ${PKG} --rename --divert "$BASH_MOD1_DIVERTED" "$BASH_MOD1"
20
21        fi
22
[3223]23        if [ -f "$BASH_MOD2_DIVERTED" ]; then
[3189]24                rm -rf "$BASH_MOD2"
[3184]25                dpkg-divert --remove --package ${PKG} --rename --divert "$BASH_MOD2_DIVERTED" "$BASH_MOD2"
26        fi
27
28fi
29#DEBHELPER#
30
31exit 0
Note: See TracBrowser for help on using the repository browser.