summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-08-08 23:36:17 +0200
committerDirk von Suchodoletz2008-08-08 23:36:17 +0200
commitf122f92da1860d9e0e95911b3432681ab0b9ad53 (patch)
treed7b6b69316972d1f9156ac366ef1298c2ba595f3
parent* removed needles comment (diff)
downloadcore-f122f92da1860d9e0e95911b3432681ab0b9ad53.tar.gz
core-f122f92da1860d9e0e95911b3432681ab0b9ad53.tar.xz
core-f122f92da1860d9e0e95911b3432681ab0b9ad53.zip
Run testmkd extension (chmod,own) only if needed ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1997 95ad53e4-c205-0410-b2fa-d234c58c8868
-rw-r--r--initramfs/initrd-stuff/etc/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index 13753cb4..ca3da314 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -396,7 +396,7 @@ echo "fileget via $fileprot from $fileserv/$cfgfile finished" >/tmp/file-done
# to recreate directories in union mounts
testmkd () {
test -d $1 || mkdir -p $1 >/dev/null 2>&1
- for i in "$2" "$3" ; do
+ [ $# -ge 2 ] && for i in "$2" "$3" ; do
echo "$i"|grep -E "^[0-9]{3,4}$" >/dev/null 2>&1 && \
chmod "$i" $1 >/dev/null 2>&1
echo "$i"|grep -E ":." >/dev/null 2>&1 && \