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"
This commit is contained in:
Poul-Henning Kamp 2004-04-27 15:42:34 +00:00
parent b4b831ef39
commit edf28a672b
2 changed files with 4 additions and 2 deletions

View File

@ -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"

View File

@ -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"