summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2002-10-31 02:06:05 +0000
committergordon <gordon@FreeBSD.org>2002-10-31 02:06:05 +0000
commit4b5486a5f607d3ccf2c1fd497a98ce2c10c7dbfa (patch)
treef557341f2dc6b896a18ea370372cdfec5a3dc1f9 /etc
parent91ccc1d80852fee3fcd79bd8f1ebf74f26b8dc99 (diff)
downloadFreeBSD-src-4b5486a5f607d3ccf2c1fd497a98ce2c10c7dbfa.zip
FreeBSD-src-4b5486a5f607d3ccf2c1fd497a98ce2c10c7dbfa.tar.gz
Wrap test case in an if statement to avoid crunching a return value.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/root4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/root b/etc/rc.d/root
index 77ae607..b521e6f 100755
--- a/etc/rc.d/root
+++ b/etc/rc.d/root
@@ -37,7 +37,9 @@ root_start()
# If we booted a special kernel remove the record
# so we will boot the default kernel next time.
- [ -e /boot/nextkernel ] && rm -f /boot/nextkernel
+ if [ -e /boot/nextkernel ]; then
+ rm -f /boot/nextkernel
+ fi
;;
NetBSD)
umount -a >/dev/null 2>&1
OpenPOWER on IntegriCloud