LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 614|回复: 2

安装成功了,哈哈,报到

[复制链接]
发表于 2003-11-8 00:47:51 | 显示全部楼层 |阅读模式
搞到现在终于是可以了,
LFS ID 11185
还有个问题,启动的时候报告STIACDDTR,忘记是不是这么写的了,说这个设备没有
发表于 2003-11-8 01:40:07 | 显示全部楼层
没事,俺也没有那个东东.还有rtc我也没有.
 楼主| 发表于 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文件内容了
我看执行这个没有其他什么东西了啊


  1. #!/bin/bash
  2. # Begin $rc_base/init.d/network - Network Control Script

  3. # Based on ethnet script from LFS-3.1 and earlier.
  4. # Rewritten by Gerard Beekmans  - [email]gerard@linuxfromscratch.org[/email]

  5. source /etc/sysconfig/rc
  6. source $rc_functions
  7. source /etc/sysconfig/network

  8. case "$1" in
  9.         start)
  10.                 for file in $(grep -il "ONBOOT=yes" $network_devices/ifconfig.*)
  11.                 do
  12.                         interface=$(basename $file | sed s/ifconfig.//)
  13.                         case "$interface" in
  14.                                 *~) ;;
  15.                                 *)
  16.                                         $network_devices/ifup $interface
  17.                                         ;;
  18.                         esac
  19.                 done

  20.                 if [ "$GATEWAY" != "" ]
  21.                 then
  22.                         echo "Setting up default gateway..."
  23.                         route add default gateway $GATEWAY metric 1 \
  24.                                 dev $GATEWAY_IF
  25.                         evaluate_retval
  26.                 fi
  27.                 ;;

  28.         stop)
  29.                 if [ "$GATEWAY" != "" ]
  30.                 then
  31.                         echo "Removing default gateway..."
  32.                         route del -net default
  33.                         evaluate_retval
  34.                 fi

  35.                 for file in $(grep -il "ONBOOT=yes" $network_devices/ifconfig.*)
  36.                 do
  37.                         interface=$(basename $file | sed s/ifconfig.//)
  38.                         case "$interface" in
  39.                                 *~) ;;
  40.                                 *)
  41.                                         $network_devices/ifdown $interface
  42.                                         ;;
  43.                         esac
  44.                 done
  45.                 ;;

  46.         restart)
  47.                 $0 stop
  48.                 sleep 1
  49.                 $0 start
  50.                 ;;

  51.         *)
  52.                 echo "Usage: $0 {start|stop|restart}"
  53.                 exit 1
  54.                 ;;
  55. esac

  56. # End /etc/rc.d/init.d/network

  57. '''''''''''''''''''''''''''''
  58. ifconfig.eth0
  59. ONBOOT=no
  60. IP=192.168.1.1
  61. NETMASK=255.255.255.0
  62. BROADCAST=192.168.1.255

复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表