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-instalacion
Rev | Line | |
---|
[893ebb02] | 1 | #!/bin/bash |
---|
[dd08d02] | 2 | # Scirpt de ejemplo para formatear un sistema de archivos. |
---|
[5b825b50] | 3 | # Nota: se usa como base para el programa de formateo de OpenGnsys Admin). |
---|
[dd08d02] | 4 | |
---|
| 5 | TIME1=$SECONDS |
---|
| 6 | PROG="$(basename $0)" |
---|
| 7 | if [ $# -ne 2 ]; then |
---|
| 8 | ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG ndisco nparticion" |
---|
| 9 | exit $? |
---|
| 10 | fi |
---|
| 11 | |
---|
| 12 | # Desmontar y formatear el sistema de archivos. |
---|
| 13 | echo "[5] Desmontando sistema de archivos" |
---|
| 14 | ogUnmountFs "$@" || exit $? |
---|
| 15 | echo "[20] Formateando sistema de archivos" |
---|
[b0bb14f] | 16 | ogFormatFs "$@" |
---|
[dd08d02] | 17 | |
---|
| 18 | TIME=$[SECONDS-TIME1] |
---|
| 19 | echo "[100] Duración de la operación $[TIME/60]m $[TIME%60]s" |
---|
Note: See
TracBrowser
for help on using the repository browser.