%PDF- %PDF-
Direktori : /var/lib/dpkg/info/ |
Current File : /var/lib/dpkg/info/kesl.prerm |
#!/bin/sh -u export LC_ALL=C readonly PACKAGE_INSTALL_DIRECTORY='/var/opt/kaspersky/kesl/install_12.0.0.6672/' readonly LAUNCHER_FILEPATH='/opt/kaspersky/kesl/libexec/launcher' removeMark='remove' if [ "$1" != "${removeMark}" ]; then exit 0 fi readonly log='/var/log/kaspersky/kesl/kesl_launcher.log' exec 1>>$log exec 2>&1 set -x echo "Running preremove script ..." test -f "/opt/kaspersky/kesl/libexec/kesl_dump_writer.sh" if [ $? -eq 0 ]; then pattern=`grep "<original pattern>" "/opt/kaspersky/kesl/libexec/kesl_dump_writer.sh" | sed "s:.<original pattern>::"` if [ "${pattern}X" != "X" ]; then echo "${pattern}" > /proc/sys/kernel/core_pattern fi rm -f "/opt/kaspersky/kesl/libexec/kesl_dump_writer.sh" fi ${PACKAGE_INSTALL_DIRECTORY%%/}${LAUNCHER_FILEPATH} "--uninstall" echo "preremove script completed successfully" exit 0