diff options
author | David Anders <dave123@abcsinc.com> | 2006-01-25 14:59:21 +0000 |
---|---|---|
committer | David Anders <dave123@abcsinc.com> | 2006-01-25 14:59:21 +0000 |
commit | 3d8aa36b65b2751d9dc8ba2c42a61f6ae5d5eeaf (patch) | |
tree | 17814f432b3cfb7aa5e3ef6aa14e70152c6cb3f5 /target/device/jp/q5/target_skeleton/usr | |
parent | c11d4552d4ae289dda2f675777eeafa1e4e9aab5 (diff) | |
download | buildroot-novena-3d8aa36b65b2751d9dc8ba2c42a61f6ae5d5eeaf.tar.gz buildroot-novena-3d8aa36b65b2751d9dc8ba2c42a61f6ae5d5eeaf.zip |
add the amd au1500 based q5 board per case 0000374
Diffstat (limited to 'target/device/jp/q5/target_skeleton/usr')
-rwxr-xr-x | target/device/jp/q5/target_skeleton/usr/share/udhcpc/default.script | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/target/device/jp/q5/target_skeleton/usr/share/udhcpc/default.script b/target/device/jp/q5/target_skeleton/usr/share/udhcpc/default.script new file mode 100755 index 000000000..a52a7f812 --- /dev/null +++ b/target/device/jp/q5/target_skeleton/usr/share/udhcpc/default.script @@ -0,0 +1,39 @@ +#!/bin/sh + +# udhcpc script edited by Tim Riker <Tim@Rikers.org> + +[ -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 |