Use checkyesno instead of rolling my own..
This commit is contained in:
parent
9013696194
commit
40adda8665
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#[Yy][Ee][Ss]} = "" ] || mount -uw /
|
||||
checkyesno root_rw_mount && 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#[Yy][Ee][Ss]} = "" ] || mount -ur /
|
||||
checkyesno root_rw_mount && mount -ur /
|
||||
kill -INT 1
|
||||
fi
|
||||
[ ${root_rw_mount#[Yy][Ee][Ss]} = "" ] || mount -ur /
|
||||
checkyesno root_rw_mount && mount -ur /
|
||||
fi
|
||||
|
||||
echo ''
|
||||
|
Loading…
Reference in New Issue
Block a user