File: mount-ro

package info (click to toggle)
hobbit-plugins 20100527
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 196 kB
  • ctags: 32
  • sloc: perl: 1,080; makefile: 49; sh: 43
file content (7 lines) | stat: -rwxr-xr-x 125 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
#!/bin/sh

if egrep ' ro[, ]' /proc/mounts | grep -v iso9660 ; then
	exit 2
else
	echo "No filesystems mounted read-only"
fi