#!/bin/sh -e # This script can be called in the following ways: # # After the package was removed: # remove # # After the package was purged: # purge # # After the package was upgraded: # upgrade # if that fails: # failed-upgrade # # # After all of the packages files have been replaced: # disappear # # # If preinst fails during install: # abort-install # # If preinst fails during upgrade of removed package: # abort-install # # If preinst fails during upgrade: # abort-upgrade case "$1" in remove) ;; purge) # Remove logfiles rm -f /var/log/wpa_action.log* /var/log/wpa_action.*.log* rm -f /var/log/wpa_supplicant.log* /var/log/wpa_supplicant.*.log* ;; upgrade|failed-upgrade|disappear) ;; abort-install|abort-upgrade) ;; *) echo "$0 called with unknown argument \`$1'" 1>&2 exit 1 ;; esac #DEBHELPER# exit 0