diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu-export-rootfs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/runqemu-export-rootfs b/scripts/runqemu-export-rootfs index c7992d8223..70cdcdbb13 100755 --- a/scripts/runqemu-export-rootfs +++ b/scripts/runqemu-export-rootfs | |||
@@ -77,10 +77,6 @@ if [ ! -d "$PSEUDO_LOCALSTATEDIR" ]; then | |||
77 | exit 1 | 77 | exit 1 |
78 | fi | 78 | fi |
79 | 79 | ||
80 | # rpc.mountd RPC port | ||
81 | MOUNTD_RPCPORT=${MOUNTD_RPCPORT:=$[ 21111 + $NFS_INSTANCE ]} | ||
82 | # rpc.nfsd RPC port | ||
83 | NFSD_RPCPORT=${NFSD_RPCPORT:=$[ 11111 + $NFS_INSTANCE ]} | ||
84 | # NFS server port number | 80 | # NFS server port number |
85 | NFSD_PORT=${NFSD_PORT:=$[ 3049 + 2 * $NFS_INSTANCE ]} | 81 | NFSD_PORT=${NFSD_PORT:=$[ 3049 + 2 * $NFS_INSTANCE ]} |
86 | # mountd port number | 82 | # mountd port number |
@@ -88,7 +84,7 @@ MOUNTD_PORT=${MOUNTD_PORT:=$[ 3048 + 2 * $NFS_INSTANCE ]} | |||
88 | 84 | ||
89 | ## For debugging you would additionally add | 85 | ## For debugging you would additionally add |
90 | ## --debug all | 86 | ## --debug all |
91 | UNFSD_OPTS="-p -N -i $NFSPID -e $EXPORTS -x $NFSD_RPCPORT -n $NFSD_PORT -y $MOUNTD_RPCPORT -m $MOUNTD_PORT" | 87 | UNFSD_OPTS="-p -N -i $NFSPID -e $EXPORTS -n $NFSD_PORT -m $MOUNTD_PORT" |
92 | 88 | ||
93 | # See how we were called. | 89 | # See how we were called. |
94 | case "$1" in | 90 | case "$1" in |
@@ -130,7 +126,7 @@ case "$1" in | |||
130 | fi | 126 | fi |
131 | echo " " | 127 | echo " " |
132 | echo "On your target please remember to add the following options for NFS" | 128 | echo "On your target please remember to add the following options for NFS" |
133 | echo "nfsroot=IP_ADDRESS:$NFS_EXPORT_DIR,nfsvers=3,port=$NFSD_PORT,mountprog=$MOUNTD_RPCPORT,nfsprog=$NFSD_RPCPORT,udp,mountport=$MOUNTD_PORT" | 129 | echo "nfsroot=IP_ADDRESS:$NFS_EXPORT_DIR,nfsvers=3,port=$NFSD_PORT,udp,mountport=$MOUNTD_PORT" |
134 | ;; | 130 | ;; |
135 | stop) | 131 | stop) |
136 | if [ -f "$NFSPID" ]; then | 132 | if [ -f "$NFSPID" ]; then |