From a6b78e9bdefb515ea4677ace91e4b483ff34244f Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 2 Apr 2014 11:40:15 +0200 Subject: [PATCH] forensic-mark-readonly: check only for boot option read-only The "forensic" boot option isn't in use anymore and live-boot upstream has renamed "readonly" to "read-only", so adapt code accordingly. --- scripts/forensic-mark-readonly | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.1.4