diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-11-15 15:42:15 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-11-15 15:42:15 -0500 |
commit | 49d470a3b58d1cd6105e8f52a6c31cdaace0381a (patch) | |
tree | 36490c774e88669acf8a28668281c7d365906121 /configs | |
parent | f7323aebe846d1e46ad95dec5d17917538136949 (diff) | |
download | gem5-49d470a3b58d1cd6105e8f52a6c31cdaace0381a.tar.xz |
cleanup the nfs server script
configs/boot/nfs-server.rcS:
don't need extra IP aliases
re-order the nfs daemons so they happen in the right order
and don't have the shell put them in the background since they
will auto detach anyway.
--HG--
extra : convert_revision : a6b13ac91d1649878d346663f6ddff56d9a8a8ec
Diffstat (limited to 'configs')
-rwxr-xr-x | configs/boot/nfs-server.rcS | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/configs/boot/nfs-server.rcS b/configs/boot/nfs-server.rcS index feefc057f..024b42f76 100755 --- a/configs/boot/nfs-server.rcS +++ b/configs/boot/nfs-server.rcS @@ -9,10 +9,6 @@ echo "done." echo -n "setting up network..." /sbin/ifconfig eth0 10.0.0.1 txqueuelen 1000 -/sbin/ifconfig eth0:1 192.168.0.2 txqueuelen 1000 -/sbin/ifconfig eth0:2 192.168.0.3 txqueuelen 1000 -/sbin/ifconfig eth0:3 192.168.0.4 txqueuelen 1000 -/sbin/ifconfig eth0:4 192.168.0.5 txqueuelen 1000 /sbin/ifconfig lo 127.0.0.1 echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle @@ -36,8 +32,6 @@ echo "300000" > /proc/sys/net/core/netdev_max_backlog echo "131072" > /proc/sys/fs/file-max echo "done." -echo "/nfs 10.0.0.0/255.0.0.0(rw,sync,no_root_squash)" > /etc/exports - #if [ ! -x /dev/sda ] #then # mknod /dev/sda b 8 0 @@ -56,12 +50,13 @@ chmod a+rwx /nfs /usr/sbin/sfdisk -uM -l /dev/sda echo "done." +echo "/nfs 10.0.0.0/255.0.0.0(rw,sync,no_root_squash)" > /etc/exports echo -n "starting nfs kernel server..." -/sbin/nfsd 8 & -/sbin/statd & -/sbin/portmap & -/sbin/lockd & -/sbin/mountd & +/sbin/portmap +/sbin/lockd +/sbin/statd +/sbin/nfsd 8 +/sbin/mountd echo "done." echo "Exporting shares..." @@ -71,6 +66,5 @@ echo -n "signal client to mount..." echo "server ready" | /usr/bin/netcat -c 10.0.0.2 8000 echo "done." - echo -n "starting bash shell..." /bin/bash |