summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-05-07 19:50:39 +0200
committerDirk von Suchodoletz2007-05-07 19:50:39 +0200
commitbc1639c6fbc9e696411ee698ff89188e1e7b9ca5 (patch)
treeca29628e2f4fd489561644558ddcba6119ee35dc /initramfs/initrd-stuff/etc/functions
parent* reworked construction of export-URI to be delegated into the respective (diff)
downloadcore-bc1639c6fbc9e696411ee698ff89188e1e7b9ca5.tar.gz
core-bc1639c6fbc9e696411ee698ff89188e1e7b9ca5.tar.xz
core-bc1639c6fbc9e696411ee698ff89188e1e7b9ca5.zip
Ugly little bug with succession of && and || (curly bracket solves this
:-)) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1025 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/etc/functions')
-rw-r--r--initramfs/initrd-stuff/etc/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index 056e2499..0c4751c4 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -232,8 +232,8 @@ local dest=$2
local ret=0
[ -z "$dest" ] && dest="/mnt"
# often nfs is just a module and not compiled directly into the kernel
-[ -f /lib/modules/@@@KERNVER@@@/kernel/fs/nfs/nfs.ko ] && \
- modprobe ${MODPRV} nfs || error "$error_modnfs"
+[ -f /lib/modules/@@@KERNVER@@@/kernel/fs/nfs/nfs.ko ] && \
+ { modprobe ${MODPRV} nfs || error "$error_modnfs"; }
# busybox mount has to be compiled with nfs mount support otherwise
# --> error "$error_mntt"
mount -n -t nfs -o ro,nolock,tcp $nfsroot $dest || \