From ed1894412266f63e0fa3d10f2aa996e9be687f82 Mon Sep 17 00:00:00 2001 From: Trevor Johnson Date: Sun, 8 Feb 2004 21:49:37 +0000 Subject: Try to mount and unmount both linproc and linprocfs: the former is documented in linprocfs(5) but I have seen and used the latter. --- emulators/linux_base-suse-9.1/pkg-install | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'emulators/linux_base-suse-9.1') 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 -- cgit v1.2.3