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
Line | |
---|
1 | #!/bin/bash |
---|
2 | # Scirpt de ejemplo para reiniciar un ordenador |
---|
3 | # (puede usarse como base para el programa de reinicio usado por OpenGNSys Admin). |
---|
4 | |
---|
5 | PROG="$(basename $0)" |
---|
6 | |
---|
7 | echo "[10] Desmontar todos los sistemas de archivos." |
---|
8 | sync |
---|
9 | for (( i=1; i <= $(ogDiskToDev | wc -w); i++ )); do |
---|
10 | ogUnmountAll $i 2>/dev/null |
---|
11 | done |
---|
12 | echo "[50] Desmontar cache local." |
---|
13 | ogUnmountCache |
---|
14 | echo "[90] Reiniciar el equipo." |
---|
15 | /sbin/reboot |
---|
16 | |
---|
Note: See
TracBrowser
for help on using the repository browser.