X-Git-Url: http://git.grml.org/?p=grml-udev-config.git;a=blobdiff_plain;f=scripts%2Fforensic-mark-readonly;h=cd7afc8babd4b78c7bd9adf7b23b2685f0787255;hp=f277df5127428fea6d08a2774517fd4fa03cd861;hb=a6b78e9bdefb515ea4677ace91e4b483ff34244f;hpb=665c8a382a866785ceca02d01ad167b9249f6b09 diff --git a/scripts/forensic-mark-readonly b/scripts/forensic-mark-readonly index f277df5..cd7afc8 100755 --- a/scripts/forensic-mark-readonly +++ b/scripts/forensic-mark-readonly @@ -1,6 +1,6 @@ #!/bin/sh # Filename: forensic-mark-readonly -# Purpose: force device to readonly mode when booting with bootoption forensic/readonly +# Purpose: force block devices to read-only mode when booting with boot option read-only # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. @@ -24,8 +24,8 @@ is_ro() { [ "$(blockdev --getro $1)" = "1" ] && return 0 || return 1 } -# check for forensic/readonly bootoption -if grep -qe forensic -qe readonly /proc/cmdline ; then +# check for read-only bootoption +if grep -q read-only /proc/cmdline ; then # we get $DEVNAME via udev's environment if [ -n "$DEVNAME" ] ; then NAME=$(base $DEVNAME)