https://github.com/Paradigm4/shim
Raw File
Tip revision: a197840efb87f4a638f10f907aeb4bdf30cbeb2a authored by B. W. Lewis on 01 April 2014, 13:54:50 UTC
Updated README
Tip revision: a197840
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