summaryrefslogtreecommitdiff
path: root/share/hydractl/backports
blob: 44437ddb2d9faa34231b3273c4bb76514f92be82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#
# Add backports to sources.list.
#

# Get distro codename.
DISTRO="`lsb_release -cs`"

# Add backports reference if needed.
if ! grep -q -e "^deb http://backports.debian.org/debian" /etc/apt/sources.list; then
  echo "deb http://backports.debian.org/debian-backports $DISTRO-backports main contrib non-free" >> /etc/apt/sources.list
  apt-get update
fi