Skip to content

Commit

Permalink
Update debian_lepotato to work with network module, use apt_update_sk…
Browse files Browse the repository at this point in the history
…ip in module
  • Loading branch information
guysoft committed Dec 12, 2024
1 parent 22e6558 commit bc09d65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/network/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ if [ "${NETWORK_NETWORK_MANAGER}" == "yes" ]; then
unpack filesystem/network-manager/root / root
unpack filesystem/network-manager/boot /"${BASE_BOOT_MOUNT_PATH}"

if [ "${BASE_BOARD}" == "debian_lepotato" ]; then
apt_update_skip
apt-get install -y network-manager
fi

# mv /"${BASE_BOOT_MOUNT_PATH}"/wifi.nmconnection ${DIST_NETWORK_FILE}

systemctl_if_exists enable [email protected]
Expand All @@ -56,7 +61,7 @@ if [ ! -f "/etc/rc.local" ];then
fi

# prevent ntp updates from failing due to some Rpi3 weirdness, see also "Fix SSH" further below
apt-get update --allow-releaseinfo-change
apt_update_skip
apt-get install -y iptables
sed -i 's@exit 0@@' /etc/rc.local
echo '/sbin/iptables -t mangle -I POSTROUTING 1 -o wlan0 -p udp --dport 123 -j TOS --set-tos 0x00' >> /etc/rc.local
Expand Down

0 comments on commit bc09d65

Please sign in to comment.