Add Raspbian stages
This commit is contained in:
2
stage2/02-net-tweaks/00-packages
Normal file
2
stage2/02-net-tweaks/00-packages
Normal file
@@ -0,0 +1,2 @@
|
||||
wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-ralink firmware-realtek
|
||||
dhcpcd5
|
27
stage2/02-net-tweaks/00-patches/00-interfaces.diff
Normal file
27
stage2/02-net-tweaks/00-patches/00-interfaces.diff
Normal file
@@ -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
|
1
stage2/02-net-tweaks/00-patches/series
Normal file
1
stage2/02-net-tweaks/00-patches/series
Normal file
@@ -0,0 +1 @@
|
||||
00-interfaces.diff
|
8
stage2/02-net-tweaks/01-run.sh
Executable file
8
stage2/02-net-tweaks/01-run.sh
Executable file
@@ -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/
|
||||
|
3
stage2/02-net-tweaks/files/wait.conf
Normal file
3
stage2/02-net-tweaks/files/wait.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/sbin/dhcpcd -q -w
|
3
stage2/02-net-tweaks/files/wpa_supplicant.conf
Normal file
3
stage2/02-net-tweaks/files/wpa_supplicant.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
country=GB
|
||||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
||||
update_config=1
|
Reference in New Issue
Block a user