summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-02-25 16:31:27 +0100
committerDirk von Suchodoletz2009-02-25 16:31:27 +0100
commite3828639747c5ec68a8d466ced9945cd2a3ea8d7 (patch)
tree483de1545be599c577d514d889d33bc73d77917a /initramfs/stage3-stuff/etc/functions
parentSimplified handling of mounting the image sources via newly (diff)
downloadcore-e3828639747c5ec68a8d466ced9945cd2a3ea8d7.tar.gz
core-e3828639747c5ec68a8d466ced9945cd2a3ea8d7.tar.xz
core-e3828639747c5ec68a8d466ced9945cd2a3ea8d7.zip
Fixes for the smb/cifs mount function.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2641 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/etc/functions')
-rw-r--r--initramfs/stage3-stuff/etc/functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/initramfs/stage3-stuff/etc/functions b/initramfs/stage3-stuff/etc/functions
index 84140b94..5b8b2112 100644
--- a/initramfs/stage3-stuff/etc/functions
+++ b/initramfs/stage3-stuff/etc/functions
@@ -120,8 +120,8 @@ fi
case "$2" in
prot) echo "$prot" ;;
server) echo "$server" ;;
- # add '::' again to path, ticket #232
- path) echo "$path" | sed -e 's,§§§§§,\:\:,g' ;;
+ # add '::' again to path, remove duplicate "//"
+ path) echo "$path" | sed -e 's,§§§§§,\:\:,g;s,//,/,' ;;
port) echo "$port" ;;
query) echo "$query" ;;
esac
@@ -160,8 +160,8 @@ case "${proto}" in
done
;;
smb|cifs)
- mount -n -t ${proto} -o ${mntopt},user=guest,guest \
- //${server}/${srcpath} ${target}
+ mount -n -o ${mntopt},user=guest,guest,file_mode=0755,dir_mode=0755 \
+ -t ${proto} //${server}${srcpath} ${target}
;;
esac
}