summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2017-05-22 16:07:17 +0000
committergjb <gjb@FreeBSD.org>2017-05-22 16:07:17 +0000
commita2d8ac7f403bdc114385cc8151048e3af05092bf (patch)
treeb35bfd64ba39a4bae7c2805b3656e3f0676a689b /etc
parent77e420848add6606fbfaeac5ee9dfbd8fe5c1287 (diff)
downloadFreeBSD-src-a2d8ac7f403bdc114385cc8151048e3af05092bf.zip
FreeBSD-src-a2d8ac7f403bdc114385cc8151048e3af05092bf.tar.gz
MFC r307469 (imp):
Allow root_rw_mount to be both lower and upper case. Before, if it was upper case, you'd wind up with a read-only filesystem when you should sometimes. PR: 213549 Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'etc')
-rw-r--r--etc/rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 576ddf9..278c9de 100644
--- a/etc/rc
+++ b/etc/rc
@@ -135,16 +135,16 @@ done
# Note: this assumes firstboot_sentinel is on / when we have
# a read-only /, or that it is on media that's writable.
if [ -e ${firstboot_sentinel} ]; then
- [ ${root_rw_mount} = "yes" ] || mount -uw /
+ [ ${root_rw_mount#[Yy][Ee][Ss]} = "" ] || mount -uw /
chflags -R 0 ${firstboot_sentinel}
rm -rf ${firstboot_sentinel}
if [ -e ${firstboot_sentinel}-reboot ]; then
chflags -R 0 ${firstboot_sentinel}-reboot
rm -rf ${firstboot_sentinel}-reboot
- [ ${root_rw_mount} = "yes" ] || mount -ur /
+ [ ${root_rw_mount#[Yy][Ee][Ss]} = "" ] || mount -ur /
kill -INT 1
fi
- [ ${root_rw_mount} = "yes" ] || mount -ur /
+ [ ${root_rw_mount#[Yy][Ee][Ss]} = "" ] || mount -ur /
fi
echo ''
OpenPOWER on IntegriCloud