Changeset 3253


Ignore:
Timestamp:
Jan 12, 2017, 9:07:10 AM (3 years ago)
Author:
hectorgh
Message:

deleting links when removing

Location:
lliurex-smart/trunk/fuentes/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-smart/trunk/fuentes/debian/changelog

    r3223 r3253  
     1lliurex-smart (0.10.15) xenial; urgency=high
     2
     3  * Prerm fixes
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Thu, 12 Jan 2017 09:02:54 +0100
     6
    17lliurex-smart (0.10.14) xenial; urgency=high
    28
  • lliurex-smart/trunk/fuentes/debian/lliurex-smart.prerm

    r3251 r3253  
    44
    55
    6 if [ "$1" = "remove" ] ; then
    7 
     6case "$1" in
     7    remove)
    88        PKG="lliurex-smart"
    99        BASH_MOD1="/opt/SMART Technologies/.store/smart-notebook/install/bash-path"
     
    2525                dpkg-divert --remove --package ${PKG} --rename --divert "$BASH_MOD2_DIVERTED" "$BASH_MOD2"
    2626        fi
     27       
     28       
     29        if [ -e "/opt/lliurex-smart/notebook-software" ];then
     30                rm -rf "/opt/lliurex-smart/notebook-software"
     31        fi
    2732
    28 elif
     33        if [ -e "/opt/lliurex-smart/smart-product-drivers" ];then
     34               rm -rf  "/opt/lliurex-smart/smart-product-drivers"
     35        fi
     36       
     37    ;;
    2938
    30         echo "Nothing to do."
     39    failed-upgrade)
     40        ;;
     41        upgrade|deconfigure)
     42    ;;
    3143
    32 fi
     44    *)
     45        echo "prerm called with unknown argument \`$1'" >&2
     46        exit 1
     47    ;;
     48esac
     49
     50
     51
    3352#DEBHELPER#
    3453
Note: See TracChangeset for help on using the changeset viewer.