summaryrefslogtreecommitdiffstats
path: root/defaultenv-2/base/network
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-04-29 20:24:22 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-05-18 12:26:52 +0200
commit0e8155229a6e5335cc79a452c4576869636a2b19 (patch)
tree235de43e7e89f5af98f5cbaf169271f7ca31c1ff /defaultenv-2/base/network
parentb3377b07f631aceb53cddeb218eff631460a64bf (diff)
downloadbarebox-0e8155229a6e5335cc79a452c4576869636a2b19.tar.gz
barebox-0e8155229a6e5335cc79a452c4576869636a2b19.tar.xz
Add next generation default environment template
This adds a new environment template which aims to be more flexible and configurable. Instead of having mainly two scripts (a config script and a boot script) this template uses initscripts which control the startup behaviour and configuration. Also we have boot scripts in /env/boot which configure a single boot configuration. Additional boot entries can be added by board specific entries or during runtime by copying and editing a template entry. Some more helpers handle for example network interfaces which can now be brought up with 'ifup'. We use the automount feature to configure mountpoints together with the commands to bring up the devices behind these mountpoints. Optionally menu support is available which hides many details behind a nice looking interface. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv-2/base/network')
-rw-r--r--defaultenv-2/base/network/eth015
1 files changed, 15 insertions, 0 deletions
diff --git a/defaultenv-2/base/network/eth0 b/defaultenv-2/base/network/eth0
new file mode 100644
index 0000000000..048a288245
--- /dev/null
+++ b/defaultenv-2/base/network/eth0
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# ip setting (static/dhcp)
+ip=dhcp
+
+# static setup used if ip=static
+ipaddr=
+netmask=
+gateway=
+serverip=
+
+# MAC address if needed
+#ethaddr=xx:xx:xx:xx:xx:xx
+
+# put code to discover eth0 (i.e. 'usb') to /env/network/eth0-discover