mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
11cf751df2
commit
71b902050d
1 changed files with 2 additions and 2 deletions
4
etc/rc
4
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue