diff options
author | gordon <gordon@FreeBSD.org> | 2002-10-31 02:06:05 +0000 |
---|---|---|
committer | gordon <gordon@FreeBSD.org> | 2002-10-31 02:06:05 +0000 |
commit | 4b5486a5f607d3ccf2c1fd497a98ce2c10c7dbfa (patch) | |
tree | f557341f2dc6b896a18ea370372cdfec5a3dc1f9 /etc/rc.d/root | |
parent | 91ccc1d80852fee3fcd79bd8f1ebf74f26b8dc99 (diff) | |
download | FreeBSD-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/rc.d/root')
-rwxr-xr-x | etc/rc.d/root | 4 |
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 |