diff options
| author | Samuli Piippo <samuli.piippo@digia.com> | 2013-04-28 19:46:38 +0300 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@digia.com> | 2013-04-30 08:49:39 +0300 |
| commit | 59937b8ea07e92ff37d97175cc0943915caadfae (patch) | |
| tree | 53580867b6dc07fea1ffba796cd28846aa2fd37e | |
| parent | b871b26d19f605e343f9de47602f49e7f029f30a (diff) | |
| download | meta-boot2qt-59937b8ea07e92ff37d97175cc0943915caadfae.tar.gz | |
init-ifupdown: Add hostname registration to interfaces
Modified interfaces configuration file to send hostname
registration to DHCP when configuring eht0
Change-Id: I13c818f1e0da16559ef0ba07a28c4afc048613ca
Reviewed-by: Kalle Viironen <kalle.viironen@digia.com>
| -rw-r--r-- | recipes/init-ifupdown/init-ifupdown/interfaces | 32 | ||||
| -rw-r--r-- | recipes/init-ifupdown/init-ifupdown_1.0.bbappend | 2 |
2 files changed, 34 insertions, 0 deletions
diff --git a/recipes/init-ifupdown/init-ifupdown/interfaces b/recipes/init-ifupdown/init-ifupdown/interfaces new file mode 100644 index 0000000..02960ab --- /dev/null +++ b/recipes/init-ifupdown/init-ifupdown/interfaces | |||
| @@ -0,0 +1,32 @@ | |||
| 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 | iface eth1 inet dhcp | ||
| 21 | |||
| 22 | # Ethernet/RNDIS gadget (g_ether) | ||
| 23 | # ... or on host side, usbnet and random hwaddr | ||
| 24 | iface usb0 inet static | ||
| 25 | address 192.168.7.2 | ||
| 26 | netmask 255.255.255.0 | ||
| 27 | network 192.168.7.0 | ||
| 28 | gateway 192.168.7.1 | ||
| 29 | |||
| 30 | # Bluetooth networking | ||
| 31 | iface bnep0 inet dhcp | ||
| 32 | |||
diff --git a/recipes/init-ifupdown/init-ifupdown_1.0.bbappend b/recipes/init-ifupdown/init-ifupdown_1.0.bbappend new file mode 100644 index 0000000..6d4804d --- /dev/null +++ b/recipes/init-ifupdown/init-ifupdown_1.0.bbappend | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
| 2 | |||
