summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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