![script](https://myhq.it/sites/myhq.it/files/tag-script.png)
Come vedere se un percorso è associato a un device via mount? Semplicissimo:
mountpoint -q /path/da/verificare && echo "esiste" || echo "non esiste" # ... oppure ... if ! mountpoint -q $TARGETPATH ; then echo "NOTICE: $TARGETPATH not mounted, skip"; exit 1 fi
Aggiungi un commento