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:
parent
b4b831ef39
commit
edf28a672b
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user