Código:
osea chequea en /proc si esta montado el filesystem y me avisa..#!/bin/bash
export MOUNT=ruta_filesystem
if grep -qs $MOUNT /proc/mounts; then
echo "Esta montado."
else
echo "No esta montado."; then
mount $MOUNT;
fi
Pero resulta que quieren que cheque los return codes del mount
Código:
y eso no se como se hace... una mano? gracias RETURN CODES
mount has the following return codes (the bits can be ORed):
0 success
1 incorrect invocation or permissions
2 system error (out of memory, cannot fork, no more loop devices)
4 internal mount bug
8 user interrupt
16 problems writing or locking /etc/mtab
32 mount failure
64 some mount succeeded


