From 1d86226365715379255715bd984e90f446aa6c4f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 15 Nov 2024 19:23:33 +0100 Subject: [PATCH] apt_sources_write --- shell/debian.sh | 13 +++++++++++++ shell/rescue/common.sh | 11 +---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/shell/debian.sh b/shell/debian.sh index 4ce02de..e4085df 100644 --- a/shell/debian.sh +++ b/shell/debian.sh @@ -32,6 +32,19 @@ apt_install_target() { done } +apt_sources_write() { + printf "%s" "\ +deb https://deb.debian.org/debian \ +${DEBIAN_CODENAME} main non-free-firmware contrib non-free +deb https://deb.debian.org/debian \ +${DEBIAN_CODENAME}-backports main non-free-firmware contrib non-free +deb https://deb.debian.org/debian \ +${DEBIAN_CODENAME}-updates main non-free-firmware contrib non-free +deb https://deb.debian.org/debian-security \ +${DEBIAN_CODENAME}-security main non-free-firmware contrib non-free +" >"/etc/apt/sources.list" +} + apt_update() { apt-get \ update diff --git a/shell/rescue/common.sh b/shell/rescue/common.sh index 3671d15..306f7fa 100644 --- a/shell/rescue/common.sh +++ b/shell/rescue/common.sh @@ -13,16 +13,7 @@ Dir::Etc::SourceParts \"\"; Dpkg::Progress True; " >"/etc/apt/apt.conf.d/apt.conf" # apt / sources - printf "%s" "\ -deb https://deb.debian.org/debian \ -${DEBIAN_CODENAME} main non-free-firmware contrib non-free -deb https://deb.debian.org/debian \ -${DEBIAN_CODENAME}-backports main non-free-firmware contrib non-free -deb https://deb.debian.org/debian \ -${DEBIAN_CODENAME}-updates main non-free-firmware contrib non-free -deb https://deb.debian.org/debian-security \ -${DEBIAN_CODENAME}-security main non-free-firmware contrib non-free -" >"/etc/apt/sources.list" + apt_sources_write # bash / rc main_link_bashrc mv .bashrc .bashrc.old