opnsense-ports/sysutils/autojump/pkg-deinstall
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

15 lines
334 B
Bash

#!/bin/sh
case $2 in
POST-DEINSTALL)
rm -f /etc/profile.autojump
rm -f /etc/zshrc.autojump
# delete the source (.) line from the /etc/profile and /etc/zshrc
if [ -f /etc/profile ] ; then
sed -i '' -e '/profile.autojump/d' /etc/profile
fi
if [ -f /etc/zshrc ] ; then
sed -i '' -e '/zshrc.autojump/d' /etc/zshrc
fi
;;
esac