diff options
author | phk <phk@FreeBSD.org> | 2004-04-27 15:42:34 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-04-27 15:42:34 +0000 |
commit | 6289df2735b08fa9285dbc4745dda45eb67e7f6b (patch) | |
tree | 1cd384b1bb2258b0c785da62818246401f44b8f2 /etc/rc.d | |
parent | ba24b2b7e26e91213a66b83d68b7e87dde58ff78 (diff) | |
download | FreeBSD-src-6289df2735b08fa9285dbc4745dda45eb67e7f6b.zip FreeBSD-src-6289df2735b08fa9285dbc4745dda45eb67e7f6b.tar.gz |
When using this in non-NFSroot circumstances, `mount -t nfs` may
return empty. Add a dummy element to prevent the alternate action
of the shell builtin "set"
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/initdiskless | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.d/initdiskless b/etc/rc.d/initdiskless index 47ab3ec..16ca8cf 100644 --- a/etc/rc.d/initdiskless +++ b/etc/rc.d/initdiskless @@ -202,7 +202,8 @@ fi # Figure out our NFS root path # -set `mount -t nfs` +# The 'x' is there in case the list is empty. +set x `mount -t nfs` while [ $# -ge 1 ] ; do if [ "$2" = "on" -a "$3" = "/" ]; then nfsroot="$1" |