aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/zynq/base-files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/zynq/base-files/etc')
-rwxr-xr-xtarget/linux/zynq/base-files/etc/board.d/02_network16
-rw-r--r--target/linux/zynq/base-files/etc/config/network17
-rw-r--r--target/linux/zynq/base-files/etc/inittab3
3 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/zynq/base-files/etc/board.d/02_network b/target/linux/zynq/base-files/etc/board.d/02_network
new file mode 100755
index 0000000000..71d6fd8aa2
--- /dev/null
+++ b/target/linux/zynq/base-files/etc/board.d/02_network
@@ -0,0 +1,16 @@
+#!/bin/sh
+# Copyright (C) 2015 OpenWrt.org
+
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+case "$(cat /tmp/sysinfo/board_name)" in
+ xlnx,zynq-zc702)
+ ucidef_set_interface_lan 'eth0'
+ ;;
+esac
+
+board_config_flush
+
+exit 0
diff --git a/target/linux/zynq/base-files/etc/config/network b/target/linux/zynq/base-files/etc/config/network
new file mode 100644
index 0000000000..0d74bda44f
--- /dev/null
+++ b/target/linux/zynq/base-files/etc/config/network
@@ -0,0 +1,17 @@
+# Copyright (C) 2015 OpenWrt.org
+
+config interface loopback
+ option ifname lo
+ option proto static
+ option ipaddr 127.0.0.1
+ option netmask 255.0.0.0
+
+config interface lan
+ option ifname eth0
+ option proto static
+ option ipaddr 192.168.1.1
+ option netmask 255.255.255.0
+ option ip6assign 60
+
+config globals globals
+ option ula_prefix auto
diff --git a/target/linux/zynq/base-files/etc/inittab b/target/linux/zynq/base-files/etc/inittab
new file mode 100644
index 0000000000..ecccc8218b
--- /dev/null
+++ b/target/linux/zynq/base-files/etc/inittab
@@ -0,0 +1,3 @@
+::sysinit:/etc/init.d/rcS S boot
+::shutdown:/etc/init.d/rcS K shutdown
+::askconsole:/bin/ash --login \ No newline at end of file