default.altbound

来自「Acorp firmware port for D-Link DSL-300T 」· ALTBOUND 代码 · 共 45 行

ALTBOUND
45
字号
#!/bin/sh# Sample udhcpc renew script                                                                                                                              RESOLV_CONF="/etc/udhcpc/resolv.conf"TIMESRV_FILE="/var/tmp/tmsvr.conf"TEST_FILE="/var/tmp/test.conf"                                                                                                                              [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"[ -n "$subnet" ] && NETMASK="netmask $subnet"                                                                                                                              /sbin/ifconfig $interface $ip $BROADCAST $NETMASK                                                                                                                              if [ -n "$router" ]then        echo "deleting routers"        while /sbin/route del default gw 0.0.0.0 dev $interface        do :        donefi                                                                                                                              echo -n > $RESOLV_CONF[ -n "$domain" ] && echo domain $domain >> $RESOLV_CONFfor i in $dnsdo        echo adding dns $i        echo nameserver $i >> $RESOLV_CONFdone                                                                                                                              if [ -n "$timesvr" ]then        for i in $timesvr        do                echo timesvr $i >> $TIMESRV_FILE        donefi                                                                                                                                                                                                                                                            if [ -n "$subnet" ]then        for i in $subnet        do                echo subnet $i >> $TEST_FILE        donefi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?