initial commit
This commit is contained in:
parent
212a05d71a
commit
e1427912f5
80 changed files with 8684 additions and 0 deletions
26
core/tabs/system-setup/fedora/multimedia-codecs.sh
Normal file
26
core/tabs/system-setup/fedora/multimedia-codecs.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
. ../../common-script.sh
|
||||
|
||||
multimedia() {
|
||||
case "$PACKAGER" in
|
||||
dnf)
|
||||
if [ -e /etc/yum.repos.d/rpmfusion-free.repo ] && [ -e /etc/yum.repos.d/rpmfusion-nonfree.repo ]; then
|
||||
printf "%b\n" "${YELLOW}Installing Multimedia Codecs...${RC}"
|
||||
"$ESCALATION_TOOL" "$PACKAGER" swap ffmpeg-free ffmpeg --allowerasing -y
|
||||
"$ESCALATION_TOOL" "$PACKAGER" update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin -y
|
||||
"$ESCALATION_TOOL" "$PACKAGER" update @sound-and-video -y
|
||||
printf "%b\n" "${GREEN}Multimedia Codecs Installed...${RC}"
|
||||
else
|
||||
printf "%b\n" "${RED}RPM Fusion repositories not found. Please set up RPM Fusion first!${RC}"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
printf "%b\n" "${RED}Unsupported distribution: $DTYPE${RC}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
checkEnv
|
||||
checkEscalationTool
|
||||
multimedia
|
Loading…
Add table
Add a link
Reference in a new issue