various improvements

This commit is contained in:
julien
2025-10-05 13:32:39 +02:00
parent a46a6c65f1
commit db11f4bbc0
5 changed files with 13 additions and 100 deletions

View File

@@ -4,11 +4,6 @@ echo
echo " => Configuration"
echo
if [ $profile = server ]; then
# Copy scripts
cp scripts/* /usr/local/sbin
fi
if [ $profile = desktop ]; then
# Disable all managed interfaces excerpt loopback from /etc/network/interfaces file to allow NetworkManager to manage them
sed -i '/# The primary network interface/Q' /etc/network/interfaces

View File

@@ -1,13 +0,0 @@
#!/bin/bash
echo
echo " => Repositories"
echo
grep -E "(contrib|non-free)" /etc/apt/sources.list > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Adding contrib and non-free repositories to /etc/apt/sources.list"
sed -i "s/http:\/\/deb.debian.org\/debian\/ trixie main non-free-firmware/& contrib non-free/" /etc/apt/sources.list
sed -i "s/http:\/\/security.debian.org\/debian-security trixie-security main non-free-firmware/& contrib non-free/" /etc/apt/sources.list
sed -i "s/http:\/\/deb.debian.org\/debian\/ trixie-updates main non-free-firmware/& contrib non-free/" /etc/apt/sources.list
fi