We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f2735 commit f54dc0eCopy full SHA for f54dc0e
mounter.sh
@@ -0,0 +1,9 @@
1
+#! /bin/bash #script ismounted #determina si un dispositivo está montado
2
+# o si en un directorio se ha montado un dispositivo
3
+#uso: ismounted "directorio" o ismounted "device"
4
+# device puede ser /dev/sda4
5
+mounter=$(grep "$1" /proc/mounts)
6
+if [ -z "$mounter" ];
7
+then echo "$1 NO montado"
8
+else echo "$1 Montado"
9
+fi
0 commit comments