summaryrefslogtreecommitdiff
path: root/misc/staroffice/files/soffice
diff options
context:
space:
mode:
authorrh <rh>2000-03-15 07:00:52 +0000
committerrh <rh>2000-03-15 07:00:52 +0000
commitcd61d84a1fdf49bceb6c11c219beea43ad1f6c54 (patch)
tree7822f97da1f548b4d1e85803b2554fe36428f689 /misc/staroffice/files/soffice
parent77be86522c35553f77673a04b56351ef03477edf (diff)
downloadpkgsrc-cd61d84a1fdf49bceb6c11c219beea43ad1f6c54.tar.gz
Add check whether /proc is mounted. Closes pr 9560 by Tim Walls, thx!
Diffstat (limited to 'misc/staroffice/files/soffice')
-rwxr-xr-xmisc/staroffice/files/soffice9
1 files changed, 8 insertions, 1 deletions
diff --git a/misc/staroffice/files/soffice b/misc/staroffice/files/soffice
index 1f624e1ec0a..a533102cd54 100755
--- a/misc/staroffice/files/soffice
+++ b/misc/staroffice/files/soffice
@@ -1,10 +1,17 @@
#!/bin/sh
#
-# $NetBSD: soffice,v 1.1.1.1 1999/11/22 21:23:49 rh Exp $
+# $NetBSD: soffice,v 1.2 2000/03/15 07:00:52 rh Exp $
#
SOINST=@@PREFIX@@/Office51
[ "$SOFFICE" = "" ] && SOFFICE=$HOME/Office51
+if [ "`/sbin/mount | grep 'on /proc' | cut -d ' ' -f 5`" != "procfs" ]; then
+ echo "-----------------------------------------------------------------"
+ echo "StarOffice needs procfs to be mounted on /proc in order to work. "
+ echo "-----------------------------------------------------------------"
+ exit 1
+fi
+
if [ ! -d "$SOFFICE" ]; then
echo ""
echo "-----------------------------------------------------------------"