aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorTrevor Johnson <trevor@FreeBSD.org>2004-02-08 21:49:37 +0000
committerTrevor Johnson <trevor@FreeBSD.org>2004-02-08 21:49:37 +0000
commited1894412266f63e0fa3d10f2aa996e9be687f82 (patch)
treed54307d101687ceb48aa49c11cab6c3d57182e01 /emulators
parent4e31efe372c48a38dc1f3159fe03dd62997a6159 (diff)
downloadports-ed1894412266f63e0fa3d10f2aa996e9be687f82.tar.gz
ports-ed1894412266f63e0fa3d10f2aa996e9be687f82.zip
Try to mount and unmount both linproc and linprocfs: the former
is documented in linprocfs(5) but I have seen and used the latter.
Notes
Notes: svn path=/head/; revision=100418
Diffstat (limited to 'emulators')
-rw-r--r--emulators/linux_base-8/pkg-install12
-rw-r--r--emulators/linux_base-rh-9/pkg-install12
-rw-r--r--emulators/linux_base-suse-9.1/pkg-install12
-rw-r--r--emulators/linux_base-suse-9.2/pkg-install12
-rw-r--r--emulators/linux_base-suse-9.3/pkg-install12
5 files changed, 60 insertions, 0 deletions
diff --git a/emulators/linux_base-8/pkg-install b/emulators/linux_base-8/pkg-install
index 2d569a739289..b4d717c72915 100644
--- a/emulators/linux_base-8/pkg-install
+++ b/emulators/linux_base-8/pkg-install
@@ -16,18 +16,30 @@ PRE-INSTALL)
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
+ if [ -n "`mount | grep -w ^linproc`" ]; then
+ echo 'Un-mounting linproc...'
+ umount linproc
+ fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
+ if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
+ echo 'Re-mounting linproc...'
+ mount linproc
+ fi
;;
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
diff --git a/emulators/linux_base-rh-9/pkg-install b/emulators/linux_base-rh-9/pkg-install
index 2d569a739289..b4d717c72915 100644
--- a/emulators/linux_base-rh-9/pkg-install
+++ b/emulators/linux_base-rh-9/pkg-install
@@ -16,18 +16,30 @@ PRE-INSTALL)
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
+ if [ -n "`mount | grep -w ^linproc`" ]; then
+ echo 'Un-mounting linproc...'
+ umount linproc
+ fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
+ if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
+ echo 'Re-mounting linproc...'
+ mount linproc
+ fi
;;
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
diff --git a/emulators/linux_base-suse-9.1/pkg-install b/emulators/linux_base-suse-9.1/pkg-install
index 2d569a739289..b4d717c72915 100644
--- a/emulators/linux_base-suse-9.1/pkg-install
+++ b/emulators/linux_base-suse-9.1/pkg-install
@@ -16,18 +16,30 @@ PRE-INSTALL)
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
+ if [ -n "`mount | grep -w ^linproc`" ]; then
+ echo 'Un-mounting linproc...'
+ umount linproc
+ fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
+ if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
+ echo 'Re-mounting linproc...'
+ mount linproc
+ fi
;;
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
diff --git a/emulators/linux_base-suse-9.2/pkg-install b/emulators/linux_base-suse-9.2/pkg-install
index 2d569a739289..b4d717c72915 100644
--- a/emulators/linux_base-suse-9.2/pkg-install
+++ b/emulators/linux_base-suse-9.2/pkg-install
@@ -16,18 +16,30 @@ PRE-INSTALL)
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
+ if [ -n "`mount | grep -w ^linproc`" ]; then
+ echo 'Un-mounting linproc...'
+ umount linproc
+ fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
+ if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
+ echo 'Re-mounting linproc...'
+ mount linproc
+ fi
;;
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
diff --git a/emulators/linux_base-suse-9.3/pkg-install b/emulators/linux_base-suse-9.3/pkg-install
index 2d569a739289..b4d717c72915 100644
--- a/emulators/linux_base-suse-9.3/pkg-install
+++ b/emulators/linux_base-suse-9.3/pkg-install
@@ -16,18 +16,30 @@ PRE-INSTALL)
echo 'Un-mounting linprocfs...'
umount linprocfs
fi
+ if [ -n "`mount | grep -w ^linproc`" ]; then
+ echo 'Un-mounting linproc...'
+ umount linproc
+ fi
;;
POST-INSTALL)
if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
echo 'Re-mounting linprocfs...'
mount linprocfs
fi
+ if [ -n "`grep -w ^linprocfs /etc/fstab`" ]; then
+ echo 'Re-mounting linproc...'
+ mount linproc
+ fi
;;
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