Use the more proper -f. Leave /bin/rm in place since that's what

other rc scripts have, though it isn't strictly necessary.
This commit is contained in:
Warner Losh 2016-01-05 21:20:47 +00:00
parent 11cf751df2
commit 71b902050d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293227

4
etc/rc
View File

@ -132,9 +132,9 @@ done
# Remove the firstboot sentinel, and reboot if it was requested.
if [ -e ${firstboot_sentinel} ]; then
[ ${root_rw_mount} = "yes" ] || mount -uw /
/bin/rm ${firstboot_sentinel}
/bin/rm -f ${firstboot_sentinel}
if [ -e ${firstboot_sentinel}-reboot ]; then
/bin/rm ${firstboot_sentinel}-reboot
/bin/rm -f ${firstboot_sentinel}-reboot
[ ${root_rw_mount} = "yes" ] || mount -ur /
kill -INT 1
fi