From: Michael Prokop Date: Fri, 10 Jul 2020 08:01:17 +0000 (+0200) Subject: scripts/forensic-mark-readonly: support standalone usage and configuration file usage X-Git-Tag: v0.5.0~8 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=31e81f4ab51d9c47eb12a239b587c3b9dd204cf6;hp=31e81f4ab51d9c47eb12a239b587c3b9dd204cf6;p=grml-udev-config.git scripts/forensic-mark-readonly: support standalone usage and configuration file usage Instead of accepting environment variable $DEVNAME we expect the script to be invoked with and argument like /dev/sda1 (useful for manual execution) or sda1 (when invoked via udev rule). Support configuration via /etc/grml/forensic.conf with two variables: * READONLY_MODE: if set to "disable" then the script won't modify block devices * READONLY_IGNORE: this supports ignoring devices to not being set to read-only While at it improve coding style. This work was funded by Grml-Forensic. ---