diff --git a/020-Fancy_Apt.sh b/020-Fancy_Apt.sh new file mode 100644 index 0000000..079a32f --- /dev/null +++ b/020-Fancy_Apt.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +## Script Location +SCRIPTDIR=$(dirname $0) +source "$SCRIPTDIR/common/colors.sh" +source "$SCRIPTDIR/common/functions.sh" +source "$SCRIPTDIR/common/load-defaults.sh" + +# Fix fancy progress bar for apt-get +# https://askubuntu.com/a/754653 +if [ -d /etc/apt/apt.conf.d ] +then + if ! [ -f /etc/apt/apt.conf.d/99progressbar ] + then + echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar + echo 'APT::Color "1";' >> /etc/apt/apt.conf.d/99progressbar + chmod 644 /etc/apt/apt.conf.d/99progressbar + fi +fi diff --git a/021-IPv4_Apt.sh b/021-IPv4_Apt.sh new file mode 100644 index 0000000..d851a95 --- /dev/null +++ b/021-IPv4_Apt.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +## Script Location +SCRIPTDIR=$(dirname $0) +source "$SCRIPTDIR/common/colors.sh" +source "$SCRIPTDIR/common/functions.sh" +source "$SCRIPTDIR/common/load-defaults.sh" + +# Prefer IPv4 for apt +if [ -d /etc/apt/apt.conf.d ] +then + if ! [ -f /etc/apt/apt.conf.d/99force-ipv4 ] + then + echo 'Acquire::ForceIPv4 "true";' >> /etc/apt/apt.conf.d/99force-ipv4 + chmod 644 /etc/apt/apt.conf.d/99force-ipv4 + fi +fi diff --git a/020-Checking_Dependencies.sh b/024-Checking_Dependencies.sh similarity index 100% rename from 020-Checking_Dependencies.sh rename to 024-Checking_Dependencies.sh diff --git a/dependencies/fastfetch.dep b/dependencies/fastfetch.dep new file mode 100644 index 0000000..215b1e7 --- /dev/null +++ b/dependencies/fastfetch.dep @@ -0,0 +1 @@ +fastfetch diff --git a/dependencies/neofetch.dep b/dependencies/neofetch.dep deleted file mode 100644 index f8d43b1..0000000 --- a/dependencies/neofetch.dep +++ /dev/null @@ -1 +0,0 @@ -neofetch diff --git a/motd/01-neofetch b/motd/01-neofetch index 29d27cf..b34b853 100644 --- a/motd/01-neofetch +++ b/motd/01-neofetch @@ -1,2 +1,2 @@ #!/bin/bash -/usr/bin/neofetch +$(which fastfetch)