☰
Debian Codegraph
@
20230301
/
/
etc
/
misc.d
/
mount-ro
☽
☼
etc/misc.d/mount-ro
code
plain
raw
symbols
SCIP
MIT
2007-2020 Christoph Berg <
[email protected]
>; 2010-2023 Axel Beckert <
[email protected]
>; 2005 Peter Palfrader <
[email protected]
>; 2008 Peter Eisentraut <
[email protected]
>; 2009-2010 Emil Larsson <
[email protected]
>; 2012 David Bremner <
[email protected]
>; 2013-2014 Elmar Heeb <
[email protected]
>
debian/copyright
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