summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2016-01-05 21:20:47 +0000
committerimp <imp@FreeBSD.org>2016-01-05 21:20:47 +0000
commitec77f0bef381d18a7cb6847d3e0f02c0f4087f05 (patch)
treec3ddb3f7d77c4f2eeba6bffeacf45b882dad7bc7 /etc/rc
parentd6a76cd84f7f3a8435fb87174c48e46e576186c8 (diff)
downloadFreeBSD-src-ec77f0bef381d18a7cb6847d3e0f02c0f4087f05.zip
FreeBSD-src-ec77f0bef381d18a7cb6847d3e0f02c0f4087f05.tar.gz
Use the more proper -f. Leave /bin/rm in place since that's what
other rc scripts have, though it isn't strictly necessary.
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 2c90f38..2127d78 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
OpenPOWER on IntegriCloud