summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-11-08 05:08:15 +0000
committerMike Frysinger <vapier@gentoo.org>2004-11-08 05:08:15 +0000
commit26fd47c3638235ff4ecb8cb7fb5771c9dc718ec9 (patch)
treeb4ad8693b31091388bff408f46646202b831fb8e /net-fs
parentstepmania 2nd initial import (Manifest recommit) (diff)
downloadgentoo-2-26fd47c3638235ff4ecb8cb7fb5771c9dc718ec9.tar.gz
gentoo-2-26fd47c3638235ff4ecb8cb7fb5771c9dc718ec9.tar.bz2
gentoo-2-26fd47c3638235ff4ecb8cb7fb5771c9dc718ec9.zip
make sure init script creates /var/lib directory #70251
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/idmapd/files/idmapd.rc9
1 files changed, 5 insertions, 4 deletions
diff --git a/net-fs/idmapd/files/idmapd.rc b/net-fs/idmapd/files/idmapd.rc
index 73c3dccfdce5..f2fe6ec43dc7 100644
--- a/net-fs/idmapd/files/idmapd.rc
+++ b/net-fs/idmapd/files/idmapd.rc
@@ -1,17 +1,18 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/idmapd/files/idmapd.rc,v 1.4 2004/07/14 23:34:24 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/idmapd/files/idmapd.rc,v 1.5 2004/11/08 05:08:15 vapier Exp $
depend() {
need net
}
start() {
- if grep -q rpc_pipefs /proc/filesystems &>/dev/null; then
- if ! grep -q "rpc_pipefs /var/lib/rpc_pipes" /proc/mounts &>/dev/null; then
+ [ ! -d /var/lib/rpc_pipes ] && mkdir -p /var/lib/rpc_pipes
+
+ if grep -q rpc_pipefs /proc/filesystems ; then
+ if ! grep -q "rpc_pipefs /var/lib/rpc_pipes" /proc/mounts ; then
ebegin "Mounting RPC pipefs"
- mkdir -p /var/lib/rpc_pipes
mount -t rpc_pipefs rpc_pipefs /var/lib/rpc_pipes
eend $? "Error mounting RPC pipefs"
fi