From 71b902050d159268fdc5e15c4fc9d143bf72bcaf Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 5 Jan 2016 21:20:47 +0000 Subject: [PATCH] Use the more proper -f. Leave /bin/rm in place since that's what other rc scripts have, though it isn't strictly necessary. --- etc/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc b/etc/rc index 2c90f385b88b..2127d7895925 100644 --- a/etc/rc +++ b/etc/rc @@ -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