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/init/default.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/init/default.sh')
-rwxr-xr-x | client/shared/etc/init/default.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/shared/etc/init/default.sh b/client/shared/etc/init/default.sh index b190a343..713df252 100755 --- a/client/shared/etc/init/default.sh +++ b/client/shared/etc/init/default.sh @@ -22,7 +22,10 @@ echo "preparado" >> $OGLOGSTANDAR # http-log-status # Lanzar servicios complementarios del cliente. -echo -ne "og\nog\n" | passwd root +PASS=$(grep "^[ ]*OPTIONS=" /scripts/ogfunctions 2>&1 | \ + sed 's/\(.*\)pass=\(\w*\)\(.*\)/\2/') +PASS=${PASS:-"og"} +echo -ne "$PASS\n$PASS\n" | passwd root 2>/dev/null #Compatibilidad ssh con el boot-tools 1.0.2 /usr/sbin/sshd #setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1 |