Skip to content

Commit 73e7d70

Browse files
author
Angaddeep Singh
committed
update
1 parent 5a826ba commit 73e7d70

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh -e
2+
3+
. ../../common-script.sh
4+
5+
configureDNF() {
6+
case $PACKAGER in
7+
dnf)
8+
$ESCALATION_TOOL sed -i '/^max_parallel_downloads=/c\max_parallel_downloads=10' /etc/dnf/dnf.conf || echo 'max_parallel_downloads=10' >> /etc/dnf/dnf.conf
9+
echo "fastestmirror=True" | $ESCALATION_TOOL tee -a /etc/dnf/dnf.conf > /dev/null
10+
echo "defaultyes=True" | $ESCALATION_TOOL tee -a /etc/dnf/dnf.conf > /dev/null
11+
12+
$ESCALATION_TOOL "$PACKAGER" -y install dnf-plugins-core
13+
;;
14+
*)
15+
echo "Unsupported distribution: $DTYPE"
16+
;;
17+
esac
18+
}
19+
20+
checkEnv
21+
configureDNF
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh -e
2+
3+
. ../../common-script.sh
4+
5+
multimedia() {
6+
case $PACKAGER in
7+
dnf)
8+
if [[ -e /etc/yum.repos.d/rpmfusion-free.repo && -e /etc/yum.repos.d/rpmfusion-nonfree.repo ]]; then
9+
echo "Installing Multimedia Codecs"
10+
$ESCALATION_TOOL dnf swap ffmpeg-free ffmpeg --allowerasing -y
11+
$ESCALATION_TOOL dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin -y
12+
$ESCALATION_TOOL dnf update @sound-and-video -y
13+
echo "Multimedia Codecs Installed"
14+
fi
15+
;;
16+
*)
17+
echo "Unsupported distribution: $DTYPE"
18+
;;
19+
esac
20+
}
21+
22+
checkEnv
23+
multimedia

tabs/system-setup/tab_data.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ values = ["dnf"]
3232
name = "RPM Fusion Setup"
3333
script = "fedora/rpm-fusion-setup.sh"
3434

35+
[[data.entries]]
36+
name = "Configure DNF"
37+
script = "fedora/configure-dnf.sh"
38+
39+
[[data.entries]]
40+
name = "Multimedia Setup"
41+
script = "fedora/multimedia-codecs.sh"
42+
3543
[[data]]
3644
name = "Full System Update"
3745
script = "system-update.sh"

0 commit comments

Comments
 (0)