- 积分
- 1028
贡献127
飞刀2 FD
注册时间2011-9-14
在线时间97 小时

|
发表于 2012-2-10 09:13:22
|
显示全部楼层
同志们,Linux3.0确实跟Linux2.6 NFS有点不一样,使用Linux3.0的朋友们可以这样,修改NFS网络文件系统里面的 /etc/init.d/ifconfig-eth0文件,修改如下:
if [ -f /etc/eth0-setting ] ; then
source /etc/eth0-setting
#if grep -q "^/dev/root / nfs " /etc/mtab ; then
if grep -q "root=/dev/nfs" /proc/cmdline;then echo -n NFS root ... > /dev/ttySAC0
else
ifconfig eth0 down
ifconfig eth0 hw ether $MAC
ifconfig eth0 $IP netmask $Mask up
route add default gw $Gateway
fi
echo nameserver $DNS > /etc/resolv.conf |
|