aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2012-05-23 17:50:29 -0700
committerDarren Hart <dvhart@linux.intel.com>2012-05-25 15:08:18 -0700
commitcaa0042ec0042bb4d4f48ac2a4722af9e52469c1 (patch)
treead46e9e86e5d80890df909571a02e26d5ddd5dd2
parentf64ab3a8c976b379195b459ca8e4c9e8ab440bd6 (diff)
downloadmeta-intel-caa0042ec0042bb4d4f48ac2a4722af9e52469c1.tar.gz
meta-intel-caa0042ec0042bb4d4f48ac2a4722af9e52469c1.tar.bz2
meta-intel-caa0042ec0042bb4d4f48ac2a4722af9e52469c1.zip
fri2: netbase: Add an fri2 specific /etc/network/interfaces file
The default interfaces file sets usb0 up as static inet. As the FRI2 is more likely to use the usb0 interface for a cellular modem, this is inappropriate. Drop usb0 from /etc/network/interfaces entirely and rely on ofono to set it up. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rw-r--r--meta-fri2/netbase/files/fri2-noemgd/interfaces9
-rw-r--r--meta-fri2/netbase/files/fri2/interfaces9
-rw-r--r--meta-fri2/netbase/netbase_4.47.bbappend2
3 files changed, 20 insertions, 0 deletions
diff --git a/meta-fri2/netbase/files/fri2-noemgd/interfaces b/meta-fri2/netbase/files/fri2-noemgd/interfaces
new file mode 100644
index 00000000..f5bb9468
--- /dev/null
+++ b/meta-fri2/netbase/files/fri2-noemgd/interfaces
@@ -0,0 +1,9 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet dhcp
diff --git a/meta-fri2/netbase/files/fri2/interfaces b/meta-fri2/netbase/files/fri2/interfaces
new file mode 100644
index 00000000..f5bb9468
--- /dev/null
+++ b/meta-fri2/netbase/files/fri2/interfaces
@@ -0,0 +1,9 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet dhcp
diff --git a/meta-fri2/netbase/netbase_4.47.bbappend b/meta-fri2/netbase/netbase_4.47.bbappend
new file mode 100644
index 00000000..5816c33e
--- /dev/null
+++ b/meta-fri2/netbase/netbase_4.47.bbappend
@@ -0,0 +1,2 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+PRINC := "${@int(PRINC) + 1}"