用于生成linux操作系统下的交叉编译工具链和嵌入式linux系统的根文件系统,支持x86、arm、powerpc等处理器

源代码在线查看: default.script

软件大小: 1702 K
上传用户: lixuecheng
关键词: linux powerpc arm x86
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/bin/sh								# udhcpc script edited by Tim Riker 								[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1								RESOLV_CONF="/etc/resolv.conf"				[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"				[ -n "$subnet" ] && NETMASK="netmask $subnet"								case "$1" in					deconfig)						/sbin/ifconfig $interface 0.0.0.0						;;									renew|bound)						/sbin/ifconfig $interface $ip $BROADCAST $NETMASK										if [ -n "$router" ] ; then							echo "deleting routers"							while route del default gw 0.0.0.0 dev $interface ; do								:							done											for i in $router ; do								route add default gw $i dev $interface							done						fi										echo -n > $RESOLV_CONF						[ -n "$domain" ] && echo search $domain >> $RESOLV_CONF						for i in $dns ; do							echo adding dns $i							echo nameserver $i >> $RESOLV_CONF						done						;;				esac								exit 0							

相关资源