BerryLan Mods
* replace dhcpcd5 with network-manager * seed in the nymea repository and nymea-networkmanager * patch nymea-networkmanager startup comand to use "Raspberry Pi" instead of nymea
This commit is contained in:
parent
5780006ecd
commit
d245b176cf
|
@ -1,7 +1,12 @@
|
||||||
# pi-gen
|
# pi-gen
|
||||||
|
|
||||||
_Tool used to create the raspberrypi.org Raspbian images_
|
_Tool used to create the berrylan.app Raspbian images_
|
||||||
|
|
||||||
|
This tool is based on the pi-gen tool of the raspberrypi.org Raspbian images.
|
||||||
|
It only adds http://repository.nymea.io to the repositories and preinstalls
|
||||||
|
nymea-networkmanager in the image to allow WiFi configuration via BerryLan.
|
||||||
|
|
||||||
|
nymea-networkmanager can be found at https://github.com/guh/nymea-networkmanager
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek
|
wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek
|
||||||
raspberrypi-net-mods
|
raspberrypi-net-mods
|
||||||
dhcpcd5
|
|
||||||
net-tools
|
net-tools
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
#!/bin/bash -e
|
#!/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 -d "${ROOTFS_DIR}/etc/wpa_supplicant"
|
||||||
install -v -m 600 files/wpa_supplicant.conf "${ROOTFS_DIR}/etc/wpa_supplicant/"
|
install -v -m 600 files/wpa_supplicant.conf "${ROOTFS_DIR}/etc/wpa_supplicant/"
|
||||||
|
|
||||||
|
|
20
stage2/04-berrylan/00-run-chroot.sh
Executable file
20
stage2/04-berrylan/00-run-chroot.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
# Add nymea repository
|
||||||
|
echo -e "\n## nymea repo\ndeb http://repository.nymea.io stretch main raspbian\n#deb-src http://repository.nymea.io stretch main raspbian" | tee /etc/apt/sources.list.d/nymea.list
|
||||||
|
wget -qO - http://repository.nymea.io/repository-pubkey.gpg | apt-key add -
|
||||||
|
|
||||||
|
# Set repository priority (prefere packages from raspbian section
|
||||||
|
cat <<EOM >/etc/apt/preferences.d/nymea
|
||||||
|
Package: *
|
||||||
|
Pin: release c=raspbian
|
||||||
|
Pin-Priority: 700
|
||||||
|
|
||||||
|
Package: *
|
||||||
|
Pin: origin repository.nymea.io c=main
|
||||||
|
Pin-Priority: 500
|
||||||
|
EOM
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
systemctl enable ssh
|
||||||
|
systemctl disable dhcpcd5
|
2
stage2/04-berrylan/01-packages
Normal file
2
stage2/04-berrylan/01-packages
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
network-manager
|
||||||
|
nymea-networkmanager
|
4
stage2/04-berrylan/01-run-chroot.sh
Normal file
4
stage2/04-berrylan/01-run-chroot.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
systemctl enable ssh
|
||||||
|
systemctl disable dhcpcd5
|
3
stage2/04-berrylan/04-run.sh
Normal file
3
stage2/04-berrylan/04-run.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
sed -i 's/-a nymea -p nymea-box/-a "Raspberry Pi" -p "Raspberry Pi"/' ${ROOTFS_DIR}/lib/systemd/system/nymea-networkmanager.service
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user