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
Rev | Line | |
---|
[9948203] | 1 | function ogMountCache () |
---|
| 2 | { |
---|
| 3 | # Si se solicita, mostrar ayuda. |
---|
| 4 | if [ "$*" == "help" ]; then |
---|
| 5 | ogHelp "$FUNCNAME" "$FUNCNAME" "$FUNCNAME ==> /mnt/sda4" |
---|
| 6 | return |
---|
| 7 | fi |
---|
| 8 | |
---|
| 9 | ogMountFs $(ogFindCache) 2>/dev/null || ogRaiseError $OG_ERR_PARTITION "$MSG_NOCACHE" || return $? |
---|
| 10 | } |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | function ogUnmountCache () |
---|
| 14 | { |
---|
| 15 | # Variables locales. |
---|
| 16 | local CACHE |
---|
| 17 | # Si se solicita, mostrar ayuda. |
---|
| 18 | if [ "$*" == "help" ]; then |
---|
| 19 | ogHelp "$FUNCNAME" "$FUNCNAME" |
---|
| 20 | return |
---|
| 21 | fi |
---|
| 22 | |
---|
| 23 | CACHE=$(ogFindCache) || ogRaiseError $OG_ERR_PARTITION "$MSG_NOCACHE" |
---|
| 24 | ogIsMounted $CACHE || return 0 |
---|
| 25 | ogUnmountFs $CACHE |
---|
| 26 | # Borrar enlace simbólico de /mnt/ParticiónCache. |
---|
| 27 | rm -f $(ogDiskToDev $CACHE | sed 's/dev/mnt/') |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.