close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
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 5c0eef1 was
2338c95f,
checked in by ramon <ramongomez@…>, 16 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.0 KB
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | # Scirpt de ejemplo para iniciar Linux desde partición de arranque. |
|---|
| 3 | # (puede usarse como base para el programa de arranque usado por OpenGNSys Admin). |
|---|
| 4 | |
|---|
| 5 | PROG="$(basename $0)" |
|---|
| 6 | if [ $# -ne 2 ]; then |
|---|
| 7 | ogRaiseError $OG_ERR_FORMAT "Formato: $PROG ndisco nparticion" |
|---|
| 8 | exit $? |
|---|
| 9 | fi |
|---|
| 10 | |
|---|
| 11 | echo "[0] Inicio del proceso de arranque." |
|---|
| 12 | PART=$(ogDiskToDev "$1" "$2") || exit $? |
|---|
| 13 | |
|---|
| 14 | echo "[10] Desmontar todos los sistemas de archivos." |
|---|
| 15 | sync |
|---|
| 16 | for (( i=1; i <= $(ogDiskToDev | wc -w); i++ )); do |
|---|
| 17 | ogUnmountAll $i 2>/dev/null |
|---|
| 18 | done |
|---|
| 19 | ETC=$(ogGetPath $1 $2 /etc) |
|---|
| 20 | if [ -n "$ETC" ]; then |
|---|
| 21 | echo "[30] Asignar nombre Linux \"$NAME\"." |
|---|
| 22 | NAME=$(ogGetHostname) |
|---|
| 23 | NAME=${NAME:-"pc"} |
|---|
| 24 | echo "$NAME" >$ETC/hostname 2>/dev/null |
|---|
| 25 | echo "[50] Actaualizar fstab con particion raiz \"$PART\"." |
|---|
| 26 | awk -v P="$PART " '{ if ($2=="/") {sub(/^.*$/, P, $1)} |
|---|
| 27 | print } ' $ETC/fstab >/tmp/fstab |
|---|
| 28 | mv /tmp/fstab $ETC/fstab |
|---|
| 29 | fi |
|---|
| 30 | echo "[70] Desmontar cache local." |
|---|
| 31 | ogUnmountCache |
|---|
| 32 | |
|---|
| 33 | echo "[90] Arrancar sistema operativo." |
|---|
| 34 | ogBoot $1 $2 |
|---|
| 35 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.