1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/emulators/linux_base-8/pkg-deinstall
Alexander Leidinger ef8320c75b When installed as a package, some (empty) directories are missing. This
commit tries to solve this by adding some @exec calls into the plist.

Add a pkg-deinstall script with appropriate content which was previously
in pkg-install (ouch). [1]

PR:		82625 [1]
Submitted by:	Boris B. Samorodov <bsam ipt ru>
2005-11-05 17:39:24 +00:00

18 lines
297 B
Bash

#!/bin/sh
# a deinstallation script for linux_base
case "$2" in
DEINSTALL)
if [ -n "`mount | grep -w ^linprocfs`" ]; then
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
if [ -n "`mount | grep -w ^linproc`" ]; then
echo 'Un-mounting linproc...'
umount linproc
fi
;;
esac
exit 0