diff options
Diffstat (limited to 'stage2/02-net-tweaks')
-rw-r--r-- | stage2/02-net-tweaks/00-packages | 2 | ||||
-rw-r--r-- | stage2/02-net-tweaks/00-patches/00-interfaces.diff | 27 | ||||
-rw-r--r-- | stage2/02-net-tweaks/00-patches/series | 1 | ||||
-rwxr-xr-x | stage2/02-net-tweaks/01-run.sh | 8 | ||||
-rw-r--r-- | stage2/02-net-tweaks/files/wait.conf | 3 | ||||
-rw-r--r-- | stage2/02-net-tweaks/files/wpa_supplicant.conf | 3 |
6 files changed, 44 insertions, 0 deletions
diff --git a/stage2/02-net-tweaks/00-packages b/stage2/02-net-tweaks/00-packages new file mode 100644 index 0000000..14e534b --- /dev/null +++ b/stage2/02-net-tweaks/00-packages @@ -0,0 +1,2 @@ +wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-ralink firmware-realtek +dhcpcd5 diff --git a/stage2/02-net-tweaks/00-patches/00-interfaces.diff b/stage2/02-net-tweaks/00-patches/00-interfaces.diff new file mode 100644 index 0000000..74e671f --- /dev/null +++ b/stage2/02-net-tweaks/00-patches/00-interfaces.diff @@ -0,0 +1,27 @@ +Index: jessie-stage2/rootfs/etc/network/interfaces +=================================================================== +--- jessie-stage2.orig/rootfs/etc/network/interfaces ++++ jessie-stage2/rootfs/etc/network/interfaces +@@ -1,4 +1,20 @@ +-auto lo ++# interfaces(5) file used by ifup(8) and ifdown(8) ++ ++# Please note that this file is written to be used with dhcpcd ++# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' + ++# Include files from /etc/network/interfaces.d: ++source-directory /etc/network/interfaces.d ++ ++auto lo + iface lo inet loopback +-iface eth0 inet dhcp ++ ++iface eth0 inet manual ++ ++allow-hotplug wlan0 ++iface wlan0 inet manual ++ wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf ++ ++allow-hotplug wlan1 ++iface wlan1 inet manual ++ wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf diff --git a/stage2/02-net-tweaks/00-patches/series b/stage2/02-net-tweaks/00-patches/series new file mode 100644 index 0000000..e954151 --- /dev/null +++ b/stage2/02-net-tweaks/00-patches/series @@ -0,0 +1 @@ +00-interfaces.diff diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh new file mode 100755 index 0000000..a96b556 --- /dev/null +++ b/stage2/02-net-tweaks/01-run.sh @@ -0,0 +1,8 @@ +#!/bin/bash -e + +install -v -d ${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d +install -v -m 644 files/wait.conf ${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/ + +install -v -d ${ROOTFS_DIR}/etc/wpa_supplicant +install -v -m 600 files/wpa_supplicant.conf ${ROOTFS_DIR}/etc/wpa_supplicant/ + diff --git a/stage2/02-net-tweaks/files/wait.conf b/stage2/02-net-tweaks/files/wait.conf new file mode 100644 index 0000000..30aa48c --- /dev/null +++ b/stage2/02-net-tweaks/files/wait.conf @@ -0,0 +1,3 @@ +[Service] +ExecStart= +ExecStart=/sbin/dhcpcd -q -w diff --git a/stage2/02-net-tweaks/files/wpa_supplicant.conf b/stage2/02-net-tweaks/files/wpa_supplicant.conf new file mode 100644 index 0000000..c58b871 --- /dev/null +++ b/stage2/02-net-tweaks/files/wpa_supplicant.conf @@ -0,0 +1,3 @@ +country=GB +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1 |