[PATCH 2/2] sandbox: update to new environment

Michael Grzeschik m.grzeschik at pengutronix.de
Sun Feb 2 15:32:49 EST 2014


Signed-off-by: Michael Grzeschik <m.grzeschik at pengutronix.de>
---
 arch/sandbox/board/env/bin/init     |  7 -------
 arch/sandbox/board/env/config       |  8 --------
 arch/sandbox/board/env/network/eth0 | 11 +++++++++++
 3 files changed, 11 insertions(+), 15 deletions(-)
 delete mode 100644 arch/sandbox/board/env/bin/init
 delete mode 100644 arch/sandbox/board/env/config
 create mode 100644 arch/sandbox/board/env/network/eth0

diff --git a/arch/sandbox/board/env/bin/init b/arch/sandbox/board/env/bin/init
deleted file mode 100644
index a7cb7d563d9a..000000000000
--- a/arch/sandbox/board/env/bin/init
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-PATH=/env/bin
-export PATH
-
-. /env/config
-
diff --git a/arch/sandbox/board/env/config b/arch/sandbox/board/env/config
deleted file mode 100644
index 2b148b6daa6b..000000000000
--- a/arch/sandbox/board/env/config
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-eth0.ipaddr=172.0.0.2
-eth0.netmask=255.255.255.0
-eth0.gateway=172.0.0.1
-eth0.serverip=172.0.0.1
-eth0.ethaddr=80:81:82:83:84:85
-
diff --git a/arch/sandbox/board/env/network/eth0 b/arch/sandbox/board/env/network/eth0
new file mode 100644
index 000000000000..17e0c185f593
--- /dev/null
+++ b/arch/sandbox/board/env/network/eth0
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# ip setting (static/dhcp)
+ip=static
+
+# static setup used if ip=static
+ipaddr=172.0.0.2
+netmask=255.255.255.0
+gateway=172.0.0.1
+serverip=172.0.0.1
+ethaddr=80:81:82:83:84:85
-- 
1.8.5.3




More information about the barebox mailing list