Browse files

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
  • Loading branch information...
mzanetti committed Sep 13, 2018
1 parent 330ce73 commit 2b0c64dafd1ee27aa7b303b76f5d78513a0ff6bd
@@ -1,7 +1,12 @@
# pi-gen

_Tool used to create the Raspbian images_
_Tool used to create the Raspbian images_

This tool is based on the pi-gen tool of the Raspbian images.
It only adds to the repositories and preinstalls
nymea-networkmanager in the image to allow WiFi configuration via BerryLan.

nymea-networkmanager can be found at

## Dependencies

@@ -0,0 +1,16 @@
# Add nymea repository
echo -e "\n## nymea repo\ndeb stretch main raspbian\n#deb-src stretch main raspbian" | tee /etc/apt/sources.list.d/nymea.list
wget -qO - | 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 c=main
Pin-Priority: 500

apt-get update
@@ -0,0 +1 @@
@@ -1,4 +1,4 @@
wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek
@@ -0,0 +1,4 @@
#!/bin/bash -e

systemctl enable ssh
systemctl disable dhcpcd5
@@ -1,8 +1,6 @@
#!/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/"

sed -i 's/-a nymea -p nymea-box/-a "Raspberry Pi" -p "Raspberry Pi"/' ${ROOTFS_DIR}/lib/systemd/system/nymea-networkmanager.service

0 comments on commit 2b0c64d

Please sign in to comment.