diff options
author | ru <ru@FreeBSD.org> | 2006-02-17 08:34:01 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-02-17 08:34:01 +0000 |
commit | 2f299d4119e8b2591e2f904bcac1e98f08e1cb8f (patch) | |
tree | ad42b828ae894b9e0b67fb49879bad3a0ff44039 /etc/rc.d/root | |
parent | 7275d2a6b754f3ed161be4b02875fb107c57ccc9 (diff) | |
download | FreeBSD-src-2f299d4119e8b2591e2f904bcac1e98f08e1cb8f.zip FreeBSD-src-2f299d4119e8b2591e2f904bcac1e98f08e1cb8f.tar.gz |
Check if /sbin/nextboot exists before running it.
PR: 93466
Submitted by: Mats Palmgren
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 cc70301..35fd9bb 100755 --- a/etc/rc.d/root +++ b/etc/rc.d/root @@ -34,7 +34,9 @@ root_start() # If we booted a special kernel remove the record # so we will boot the default kernel next time. - /sbin/nextboot -D + if [ -x /sbin/nextboot ]; then + /sbin/nextboot -D + fi } load_rc_config $name |