Update for fedora atomic
This commit is contained in:
parent
46cdfbe486
commit
e8242b0ad0
13 changed files with 99 additions and 15 deletions
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
if [ $(whoami) == "root" ]; then
|
||||
echo "Run as a normal user, not root"
|
||||
exit 1
|
||||
|
@ -32,6 +31,33 @@ elif command_exists "dnf"; then
|
|||
rm -rf ./tmp-openh264/
|
||||
echo -e "\nNow open LibreWolf, go to about:config, and set these to true:\n media.gmp-gmpopenh264.autoupdate\n media.gmp-gmpopenh264.enabled\n media.gmp-gmpopenh264.provider.enabled\n media.peerconnection.video.h264_enabled\n"
|
||||
read -p ""
|
||||
elif command_exists "rpm-ostree"; then
|
||||
if ! command_exists "librewolf"; then
|
||||
sudo wget https://rpm.librewolf.net/librewolf-repo.repo -O /etc/yum.repos.d/librewolf.repo
|
||||
rpm-ostree install librewolf
|
||||
rpm-ostree remove firefox
|
||||
read -p "Press enter to reboot, then run do-everything.bash again"
|
||||
reboot
|
||||
else
|
||||
librewolf &
|
||||
sleep 5
|
||||
pkill librewolf
|
||||
mkdir tmp-openh264
|
||||
cd tmp-openh264
|
||||
wget http://ciscobinary.openh264.org/openh264-linux64-v1.1-Firefox33.zip
|
||||
rpm-ostree install unzip -y
|
||||
rpm-ostree apply-live
|
||||
unzip ./*.zip
|
||||
for dir in $(ls -d ~/.librewolf/*/); do
|
||||
mkdir -p ${dir}gmp-gmpopenh264/1.1/
|
||||
cp libgmpopenh264.so ${dir}gmp-gmpopenh264/1.1/
|
||||
cp gmpopenh264.info ${dir}gmp-gmpopenh264/1.1/
|
||||
done
|
||||
cd -
|
||||
rm -rf ./tmp-openh264/
|
||||
echo -e "\nNow open LibreWolf, go to about:config, and set these to true:\n media.gmp-gmpopenh264.autoupdate\n media.gmp-gmpopenh264.enabled\n media.gmp-gmpopenh264.provider.enabled\n media.peerconnection.video.h264_enabled\n"
|
||||
read -p ""
|
||||
fi
|
||||
elif command_exists "yay"; then
|
||||
yay -S librewolf-bin
|
||||
yay -R firefox
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue