various improvements
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user