blob: 588c63e0269765fc7fcf2da7e5c0f9ad4247b6cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/bash
#
# Debian backports installer
#
# Parameters
SHARE="$1"
LIB="$2"
REQUIREMENTS=""
# Include basic functions
. $LIB/trashman/functions || exit 1
. $LIB/trashman/debian || exit 1
# Requirements
#trashman_apt_install $REQUIREMENTS
# Custom parameters
BACKPORTS="/etc/apt/sources.list/backports.list"
VERSION_NAME="trashman_debian_major_version_name"
# Install
cat <<-EOF | tee $BACKPORTS
# backports
deb https://deb.debian.org/debian/ $VERSION_NAME-backports main contrib non-free
deb-src https://deb.debian.org/debian/ $VERSION_NAME-backports main contrib non-free
EOF
|