|

楼主 |
发表于 2003-11-8 13:43:55
|
显示全部楼层
SIOCADDRT:No such device
You should not be rading this error message.It means that an unforseen error took place in etc/rc.d/rc.3/S20netWork
Whick exited with a return value of 7
If you're able to track this error down to a bug in one of the provided by LFS book,please be so kind to inform us ...之类的
错误信息就是上面这些了
下面的这文件是etc/sysconfig/network/S20netWork文件内容了
我看执行这个没有其他什么东西了啊
- #!/bin/bash
- # Begin $rc_base/init.d/network - Network Control Script
- # Based on ethnet script from LFS-3.1 and earlier.
- # Rewritten by Gerard Beekmans - [email]gerard@linuxfromscratch.org[/email]
- source /etc/sysconfig/rc
- source $rc_functions
- source /etc/sysconfig/network
- case "$1" in
- start)
- for file in $(grep -il "ONBOOT=yes" $network_devices/ifconfig.*)
- do
- interface=$(basename $file | sed s/ifconfig.//)
- case "$interface" in
- *~) ;;
- *)
- $network_devices/ifup $interface
- ;;
- esac
- done
- if [ "$GATEWAY" != "" ]
- then
- echo "Setting up default gateway..."
- route add default gateway $GATEWAY metric 1 \
- dev $GATEWAY_IF
- evaluate_retval
- fi
- ;;
- stop)
- if [ "$GATEWAY" != "" ]
- then
- echo "Removing default gateway..."
- route del -net default
- evaluate_retval
- fi
- for file in $(grep -il "ONBOOT=yes" $network_devices/ifconfig.*)
- do
- interface=$(basename $file | sed s/ifconfig.//)
- case "$interface" in
- *~) ;;
- *)
- $network_devices/ifdown $interface
- ;;
- esac
- done
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "Usage: $0 {start|stop|restart}"
- exit 1
- ;;
- esac
- # End /etc/rc.d/init.d/network
- '''''''''''''''''''''''''''''
- ifconfig.eth0
- ONBOOT=no
- IP=192.168.1.1
- NETMASK=255.255.255.0
- BROADCAST=192.168.1.255
复制代码 |
|