diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2008-12-20 22:24:11 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2008-12-20 22:24:11 +0000 |
commit | 207503d59e43688d7fe22e78d565a7ac7df0de1e (patch) | |
tree | 195dcd4eee2beed17237859421356773044c60ca /target/device/Atmel/atstk1005/target_skeleton/usr/share | |
parent | 736235cb0f92f4acbb2492baa1430f91aa186cce (diff) |
Add BSP for AP7200
Diffstat (limited to 'target/device/Atmel/atstk1005/target_skeleton/usr/share')
-rw-r--r-- | target/device/Atmel/atstk1005/target_skeleton/usr/share/udhcpc/default.script | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/target/device/Atmel/atstk1005/target_skeleton/usr/share/udhcpc/default.script b/target/device/Atmel/atstk1005/target_skeleton/usr/share/udhcpc/default.script new file mode 100644 index 000000000..56cbaf6c4 --- /dev/null +++ b/target/device/Atmel/atstk1005/target_skeleton/usr/share/udhcpc/default.script @@ -0,0 +1,19 @@ +#!/bin/sh + + +case $1 in + deconfig) + ifconfig $interface 0.0.0.0 + ;; + bound|renew) + ifconfig $interface $ip netmask $subnet broadcast $broadcast + route add default gw $router + echo -n > /etc/resolv.conf + [ -z "$domain" ] || echo "domain $domain" >> /etc/resolv.conf + for n in $dns; do echo "nameserver $n" >> /etc/resolv.conf; done + if [ ! -z "$hostname" ]; then + echo $hostname > /etc/hostname + hostname $hostname + fi + ;; +esac |