diff options
author | ramon <ramongomez@us.es> | 2011-07-29 10:54:00 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2011-07-29 10:54:00 +0000 |
commit | 1895428be80e0264c2757075eb3c0ccfe79746b2 (patch) | |
tree | 8eb11968fcd7679408a6cbfd48fa34bc23d1e492 /client/shared/etc/preinit/mountrepo.sh | |
parent | 16dc61b0eb1d183bebea2191512a4576a9f57045 (diff) |
VersiĆ³n 1.0.2: usar la clave de acceso para montar el repositorio y para acceso SSH al clinete (modifica #428)
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2235 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/etc/preinit/mountrepo.sh')
-rwxr-xr-x | client/shared/etc/preinit/mountrepo.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/shared/etc/preinit/mountrepo.sh b/client/shared/etc/preinit/mountrepo.sh index 4ba0da9b..fead4a04 100755 --- a/client/shared/etc/preinit/mountrepo.sh +++ b/client/shared/etc/preinit/mountrepo.sh @@ -20,7 +20,11 @@ if [ $ogactiveadmin == "true" ]; then printf "$MSG_MOUNTREPO\n" "$protocol" "$boot" case "$protocol" in nfs) mount.nfs ${ROOTREPO}:$OGIMG $OGIMG -o rw,nolock ;; - smb) mount.cifs //${ROOTREPO}/ogimages $OGIMG -o rw,serverino,acl,username=opengnsys,password=og ;; + smb) PASS=$(grep "^[ ]*OPTIONS=" /scripts/ogfunctions 2>&1 | \ + sed 's/\(.*\)pass=\(\w*\)\(.*\)/\2/') + PASS=${PASS:-"og"} + mount.cifs //${ROOTREPO}/ogimages $OGIMG -o rw,serverino,acl,username=opengnsys,password=$PASS + ;; esac fi |