918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change
on this file since 6dfdc6d was
2338c95f,
checked in by ramon <ramongomez@…>, 14 years ago
|
Rama version1.0:
- Redistribución de directorios para el cliente.
- Modificación del instalador para adaptarse a la nueva estructura de directorios.
- Desinstalador quita los recursos de OpenGnSys en Samba.
- Documentación actualizada para la nueva versión.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1526 a21b9725-9963-47de-94b9-378ad31fedc9
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Rev | Line | |
---|
[bc55985] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | /etc/init.d/ssh restart |
---|
| 4 | #setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1 |
---|
| 5 | |
---|
| 6 | ethtool -s eth0 wol g |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | # Fichero de registro de incidencias (en el servidor; si no, en local). |
---|
| 10 | OPENGNSYS=${OPENGNSYS:-/opt/opengnsys} |
---|
| 11 | OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/${ogGetIpAdderss},log} |
---|
| 12 | if ! touch $OGLOGFILE 2>/dev/null; then |
---|
| 13 | OGLOGFILE=/var/log/opengnsys.log |
---|
| 14 | fi |
---|
| 15 | |
---|
| 16 | echo -ne "og\nog\n" | passwd root |
---|
| 17 | |
---|
| 18 | #TODO => activacion de modo escritura en REPO |
---|
| 19 | |
---|
| 20 | if [ $ogactiveadmin == "true" ] |
---|
| 21 | then |
---|
| 22 | export boot=admin |
---|
| 23 | umount /opt/opengnsys/images |
---|
| 24 | |
---|
| 25 | if [ "$ogprotocol" == "nfs" ] |
---|
| 26 | then |
---|
| 27 | mount.nfs ${ROOTSERVER}:/opt/opengnsys/images /opt/opengnsys/images -o nolock |
---|
| 28 | fi |
---|
| 29 | |
---|
| 30 | if [ "$ogprotocol" == "smb" ] |
---|
| 31 | then |
---|
| 32 | echo "montando smb" |
---|
| 33 | mount.cifs //${ROOTSERVER}/ogimages /opt/opengnsys/images -o user=opengnsys,pass=og |
---|
| 34 | echo mount.cifs //${ROOTSERVER}/ogimages /opt/opengnsys/images -o user=opengnsys,pass=og |
---|
| 35 | |
---|
| 36 | fi |
---|
| 37 | fi |
---|
| 38 | # Arranque de OpenGnSys Client. |
---|
| 39 | if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | echo "$MSG_LAUNCHCLIENT modo cliente full" |
---|
| 43 | $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d 5 |
---|
| 44 | fi |
---|
| 45 | |
---|
| 46 | # Si fallo en cliente y modo "admin", cargar shell; si no, salir. |
---|
| 47 | #if [ "$boot" == "admin" ]; then |
---|
| 48 | bash |
---|
| 49 | #fi |
---|
Note: See
TracBrowser
for help on using the repository browser.