https://github.com/Paradigm4/shim
Raw File
Tip revision: 182a4dfce8cb25704d7df3430134d49078c5b6df authored by Bryan Lewis on 25 November 2013, 16:17:04 UTC
README.md change
Tip revision: 182a4df
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