mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
This commit is contained in:
parent
013da020e2
commit
2cf098b8fc
1 changed files with 3 additions and 3 deletions
6
etc/rc
6
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 ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue