diff options
author | Samuli Piippo <samuli.piippo@digia.com> | 2013-08-12 10:34:52 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2013-08-29 09:02:33 +0300 |
commit | 637fd8348a768335a8fde685f9d49da7f548e8fc (patch) | |
tree | 994dde5706d4f3a382996463b445ef659fa4bc07 /recipes/init-ifupdown/init-ifupdown | |
parent | d585732d86d074552706870d348543b5ed295282 (diff) | |
download | meta-boot2qt-637fd8348a768335a8fde685f9d49da7f548e8fc.tar.gz |
init-ifupdown: use different interfaces configs for devices
beagleboard: sets fixed mac address on first boot
emulator: eth0 is for simulator connection and eth1 for network
rest: use hostname for dns registration
Change-Id: I8acca677fcf7c6b85bb03ae0a29011c85b7ffbf3
Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
Diffstat (limited to 'recipes/init-ifupdown/init-ifupdown')
-rw-r--r-- | recipes/init-ifupdown/init-ifupdown/beagleboard/interfaces | 33 | ||||
-rw-r--r-- | recipes/init-ifupdown/init-ifupdown/emulator/interfaces | 33 | ||||
-rw-r--r-- | recipes/init-ifupdown/init-ifupdown/interfaces | 1 |
3 files changed, 66 insertions, 1 deletions
diff --git a/recipes/init-ifupdown/init-ifupdown/beagleboard/interfaces b/recipes/init-ifupdown/init-ifupdown/beagleboard/interfaces new file mode 100644 index 0000000..e315b94 --- /dev/null +++ b/recipes/init-ifupdown/init-ifupdown/beagleboard/interfaces | |||
@@ -0,0 +1,33 @@ | |||
1 | # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) | ||
2 | |||
3 | # The loopback interface | ||
4 | auto lo | ||
5 | iface lo inet loopback | ||
6 | |||
7 | # Wireless interfaces | ||
8 | iface wlan0 inet dhcp | ||
9 | wireless_mode managed | ||
10 | wireless_essid any | ||
11 | wpa-driver wext | ||
12 | wpa-conf /etc/wpa_supplicant.conf | ||
13 | |||
14 | iface atml0 inet dhcp | ||
15 | |||
16 | # Wired or wireless interfaces | ||
17 | auto eth0 | ||
18 | iface eth0 inet dhcp | ||
19 | hostname `/bin/hostname` | ||
20 | # hwaddress ether 00:00:00:00:00:00 | ||
21 | iface eth1 inet dhcp | ||
22 | |||
23 | # Ethernet/RNDIS gadget (g_ether) | ||
24 | # ... or on host side, usbnet and random hwaddr | ||
25 | iface usb0 inet static | ||
26 | address 192.168.7.2 | ||
27 | netmask 255.255.255.0 | ||
28 | network 192.168.7.0 | ||
29 | gateway 192.168.7.1 | ||
30 | |||
31 | # Bluetooth networking | ||
32 | iface bnep0 inet dhcp | ||
33 | |||
diff --git a/recipes/init-ifupdown/init-ifupdown/emulator/interfaces b/recipes/init-ifupdown/init-ifupdown/emulator/interfaces new file mode 100644 index 0000000..06adafb --- /dev/null +++ b/recipes/init-ifupdown/init-ifupdown/emulator/interfaces | |||
@@ -0,0 +1,33 @@ | |||
1 | # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) | ||
2 | |||
3 | # The loopback interface | ||
4 | auto lo | ||
5 | iface lo inet loopback | ||
6 | |||
7 | # Wireless interfaces | ||
8 | iface wlan0 inet dhcp | ||
9 | wireless_mode managed | ||
10 | wireless_essid any | ||
11 | wpa-driver wext | ||
12 | wpa-conf /etc/wpa_supplicant.conf | ||
13 | |||
14 | iface atml0 inet dhcp | ||
15 | |||
16 | # Wired or wireless interfaces | ||
17 | auto eth0 | ||
18 | iface eth0 inet dhcp | ||
19 | auto eth1 | ||
20 | iface eth1 inet dhcp | ||
21 | hostname `/bin/hostname` | ||
22 | |||
23 | # Ethernet/RNDIS gadget (g_ether) | ||
24 | # ... or on host side, usbnet and random hwaddr | ||
25 | iface usb0 inet static | ||
26 | address 192.168.7.2 | ||
27 | netmask 255.255.255.0 | ||
28 | network 192.168.7.0 | ||
29 | gateway 192.168.7.1 | ||
30 | |||
31 | # Bluetooth networking | ||
32 | iface bnep0 inet dhcp | ||
33 | |||
diff --git a/recipes/init-ifupdown/init-ifupdown/interfaces b/recipes/init-ifupdown/init-ifupdown/interfaces index e315b94..5c1ec07 100644 --- a/recipes/init-ifupdown/init-ifupdown/interfaces +++ b/recipes/init-ifupdown/init-ifupdown/interfaces | |||
@@ -17,7 +17,6 @@ iface atml0 inet dhcp | |||
17 | auto eth0 | 17 | auto eth0 |
18 | iface eth0 inet dhcp | 18 | iface eth0 inet dhcp |
19 | hostname `/bin/hostname` | 19 | hostname `/bin/hostname` |
20 | # hwaddress ether 00:00:00:00:00:00 | ||
21 | iface eth1 inet dhcp | 20 | iface eth1 inet dhcp |
22 | 21 | ||
23 | # Ethernet/RNDIS gadget (g_ether) | 22 | # Ethernet/RNDIS gadget (g_ether) |