Ignore:
Timestamp:
Jan 31, 2018, 1:31:20 PM (20 months ago)
Author:
hectorgh
Message:

wip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-smart/trunk/fuentes/debian/lliurex-smart.prerm

    r3253 r6750  
    99        BASH_MOD1="/opt/SMART Technologies/.store/smart-notebook/install/bash-path"
    1010        BASH_MOD1_DIVERTED="$BASH_MOD1.diverted"
    11         BASH_MOD1_LLIUREX="/opt/lliurex-smart/notebook-bash-path"
    1211        BASH_MOD2="/opt/SMART Technologies/.store/smart-product-drivers/install/bash-path"
    1312        BASH_MOD2_DIVERTED="$BASH_MOD2.diverted"
    14         BASH_MOD2_LLIUREX="/opt/lliurex-smart/product-drivers-bash-path"
     13       
     14        LLIUREX_NOTEBOOK_LINK="/opt/lliurex-smart/notebook-software"
     15        LLIUREX_SMARTDRIVERS_LINK="/opt/lliurex-smart/smart-product-drivers"
    1516
     17        NOTEBOOK_PATH="/opt/SMART Technologies/Notebook Software/bin"
     18        SMARTDRIVERS_PATH="/opt/SMART Technologies/SMART Product Drivers/bin"
     19
     20        # DISABLE DIVERSIONS
    1621       
    1722        if [ -f "$BASH_MOD1_DIVERTED" ]; then
    1823                rm -rf "$BASH_MOD1"
    1924                dpkg-divert --remove --package ${PKG} --rename --divert "$BASH_MOD1_DIVERTED" "$BASH_MOD1"
    20 
    2125        fi
    2226
     
    2630        fi
    2731       
     32        # ################## #
    2833       
    29         if [ -e "/opt/lliurex-smart/notebook-software" ];then
    30                 rm -rf "/opt/lliurex-smart/notebook-software"
     34       
     35        if [ -L "$LLIUREX_NOTEBOOK_LINK" ];then
     36                rm -rf "$LLIUREX_NOTEBOOK_LINK"
    3137        fi
    3238
    33         if [ -e "/opt/lliurex-smart/smart-product-drivers" ];then
    34                rm -rf  "/opt/lliurex-smart/smart-product-drivers"
    35         fi
     39        if [ -L "$LLIUREX_SMARTDRIVERS_LINK" ];then
     40                rm -rf "$LLIUREX_SMARTDRIVERS_LINK"
     41        fi
    3642       
    3743    ;;
    3844
    3945    failed-upgrade)
    40         ;;
    41         upgrade|deconfigure)
     46    ;;
     47   
     48    upgrade|deconfigure)
    4249    ;;
    4350
    4451    *)
    45         echo "prerm called with unknown argument \`$1'" >&2
    46         exit 1
     52        #echo "prerm called with unknown argument \`$1'" >&2
     53        exit 0
    4754    ;;
    4855esac
Note: See TracChangeset for help on using the changeset viewer.