summaryrefslogtreecommitdiff
path: root/shells/psh/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'shells/psh/pkg-deinstall')
-rw-r--r--shells/psh/pkg-deinstall22
1 files changed, 0 insertions, 22 deletions
diff --git a/shells/psh/pkg-deinstall b/shells/psh/pkg-deinstall
deleted file mode 100644
index ad9fcef929e1..000000000000
--- a/shells/psh/pkg-deinstall
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-PSH="${PKG_PREFIX-/usr/local}/bin/psh"
-SHELLS="${PKG_DESTDIR-}/etc/shells"
-
-case $2 in
-DEINSTALL)
- if grep -qs "^$PSH\$" "$SHELLS"; then
- if [ `id -u` -eq 0 ]; then
- TMPSHELLS=`mktemp -t shells`
- grep -v "^$PSH\$" "$SHELLS" > "$TMPSHELLS"
- cat "$TMPSHELLS" > "$SHELLS"
- rm "$TMPSHELLS"
- else
- echo "Not root, please remove $PSH from $SHELLS manually"
- fi
- fi
- ;;
-esac