From 6289df2735b08fa9285dbc4745dda45eb67e7f6b Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 27 Apr 2004 15:42:34 +0000 Subject: 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" --- etc/rc.initdiskless | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc/rc.initdiskless') diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless index 47ab3ec..16ca8cf 100644 --- a/etc/rc.initdiskless +++ b/etc/rc.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" -- cgit v1.1