diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-18 19:18:26 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-18 19:18:26 +0000 |
commit | 37838c93f6be5a90dc35b8fa3449218806fc0c1f (patch) | |
tree | 3f735b8eee63e6fa439e011bca14e2293b5de0cd /usr.sbin/sysinstall/nfs.c | |
parent | ee10277a8bc9d2921407623da8597b7eafec720b (diff) | |
download | FreeBSD-src-37838c93f6be5a90dc35b8fa3449218806fc0c1f.zip FreeBSD-src-37838c93f6be5a90dc35b8fa3449218806fc0c1f.tar.gz |
Fix a variety of problems with my timeout handling, make it more
configurable (you can now set the timeout interval), fix a crash-bug
when no network device was attached.
Diffstat (limited to 'usr.sbin/sysinstall/nfs.c')
-rw-r--r-- | usr.sbin/sysinstall/nfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/nfs.c b/usr.sbin/sysinstall/nfs.c index 45cce67..1a7af4f 100644 --- a/usr.sbin/sysinstall/nfs.c +++ b/usr.sbin/sysinstall/nfs.c @@ -51,7 +51,7 @@ mediaInitNFS(Device *dev) if (NFSMounted) return TRUE; - if (!netDevice->init(netDevice)) + if (netDevice && !netDevice->init(netDevice)) return FALSE; if (Mkdir("/dist")) @@ -101,7 +101,7 @@ mediaShutdownNFS(Device *dev) if (unmount("/dist", MNT_FORCE) != 0) msgConfirm("Could not unmount the NFS partition: %s", strerror(errno)); msgDebug("Unmount of NFS partition successful\n"); - /* netdev->shutdown(netdev); */ + /* if (netdev) netdev->shutdown(netdev); */ NFSMounted = FALSE; return; } |