From 59937b8ea07e92ff37d97175cc0943915caadfae Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Sun, 28 Apr 2013 19:46:38 +0300 Subject: 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 --- recipes/init-ifupdown/init-ifupdown/interfaces | 32 ++++++++++++++++++++++++ recipes/init-ifupdown/init-ifupdown_1.0.bbappend | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 recipes/init-ifupdown/init-ifupdown/interfaces create mode 100644 recipes/init-ifupdown/init-ifupdown_1.0.bbappend 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 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wireless interfaces +iface wlan0 inet dhcp + wireless_mode managed + wireless_essid any + wpa-driver wext + wpa-conf /etc/wpa_supplicant.conf + +iface atml0 inet dhcp + +# Wired or wireless interfaces +auto eth0 +iface eth0 inet dhcp +hostname `/bin/hostname` +iface eth1 inet dhcp + +# Ethernet/RNDIS gadget (g_ether) +# ... or on host side, usbnet and random hwaddr +iface usb0 inet static + address 192.168.7.2 + netmask 255.255.255.0 + network 192.168.7.0 + gateway 192.168.7.1 + +# Bluetooth networking +iface bnep0 inet dhcp + 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 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + -- cgit v1.2.3-54-g00ecf