https://github.com/Paradigm4/shim
Raw File
Tip revision: f20baca0dd7e3e511d3913be3c83f8f5093a7438 authored by martin-resnick on 30 July 2014, 13:56:17 UTC
Add 14.7 to documentation
Tip revision: f20baca
before-remove.sh
#!/bin/bash
# shim
# package pre-uninstallation script
# This script is run by the package management system before package
# is uninstalled.

if test -f /etc/init.d/shimsvc; then
  /etc/init.d/shimsvc stop
fi
if test -n "$(which update-rc.d)"; then
# Ubuntu
  update-rc.d -f shimsvc remove
elif test -n "$(which chkconfig)"; then
# RHEL
  chkconfig --del shimsvc
fi
back to top