#!/bin/sh set -e PATH="/usr/sbin:/usr/bin:/sbin:/bin" stop() { if [ -x "/etc/init.d/lliurex-tcos-srv-common" ]; then if [ -x $(which invoke-rc.d 2>/dev/null) ]; then invoke-rc.d lliurex-tcos-srv-common stop else /etc/init.d/lliurex-tcos-srv-common stop fi fi } case "$1" in upgrade) stop ;; remove|purge) stop if [ -e /etc/llxcfg/cpkg-scripts/tcos-srv-common-pa ]; then llxcfg-cpkg-scripts disable tcos-srv-common-pa || true rm -f /etc/llxcfg/cpkg-scripts/tcos-srv-common-pa fi update-rc.d -f lliurex-tcos-srv-common remove >/dev/null 2>&1 ||true llxcfg-systemvars del LLX_PA_AUTH_IP_ACL ||true ;; esac #DEBHELPER# exit 0