Debian Codegraph @

etc/misc.d/mount-ro

raw symbols SCIP
1 #!/bin/sh
2
3 if grep -E ' ro[, ]' /proc/mounts | grep -Ev ' (iso9660|nfs4?|udf|cifs|smbfs|tmpfs|proc|sysfs|squashfs|fuse|ramfs) ' ; then
4 exit 2
5 else
6 echo "No filesystems mounted read-only"
7 fi