summaryrefslogtreecommitdiffstats
path: root/target/device/Atmel/atstk1005/target_skeleton/usr/share
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2008-12-20 22:24:11 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2008-12-20 22:24:11 +0000
commit207503d59e43688d7fe22e78d565a7ac7df0de1e (patch)
tree195dcd4eee2beed17237859421356773044c60ca /target/device/Atmel/atstk1005/target_skeleton/usr/share
parent736235cb0f92f4acbb2492baa1430f91aa186cce (diff)
downloadbuildroot-novena-207503d59e43688d7fe22e78d565a7ac7df0de1e.tar.gz
buildroot-novena-207503d59e43688d7fe22e78d565a7ac7df0de1e.zip
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.script19
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