-
Notifications
You must be signed in to change notification settings - Fork 1
/
ps3-goodrepos.sh
executable file
·43 lines (35 loc) · 2.07 KB
/
ps3-goodrepos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#
# Script to replace yum repo configs installed by Fedora 12 (ppc) with working configs.
# Also invokes yum system update.
#
# RUN AS ROOT: sudo ./ps3-goodrepos.sh
#
# Note: Only the fedora, fedora-updates, fedora-updates-testing, and remi repos are enabled by default.
# Enable the others (RPM Fusion and ps3linux repos) yourself by editing the files in /etc/yum.repos.d
#
if [ $(id -u) != 0 ]; then
printf "Please run as root.\n"
exit 1
fi
cp -fv rpm-gpg/RPM-GPG-KEY-fedora-12-primary /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-12-primary
cp -fv rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-12-primary /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-12-primary
cp -fv rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-12-primary /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-12-primary
if [ -f "/etc/yum.repos.d/fedora-rawhide.repo" ]; then
rm -fv /etc/yum.repos.d/fedora-rawhide.repo
fi
cp -fv yum.repos.d/fedora.repo /etc/yum.repos.d/fedora.repo
cp -fv yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates.repo
cp -fv yum.repos.d/fedora-updates-testing.repo /etc/yum.repos.d/fedora-updates-testing.repo
cp -fv yum.repos.d/rpmfusion-free.repo /etc/yum.repos.d/rpmfusion-free.repo
cp -fv yum.repos.d/rpmfusion-free-updates.repo /etc/yum.repos.d/rpmfusion-free-updates.repo
cp -fv yum.repos.d/rpmfusion-free-updates-testing.repo /etc/yum.repos.d/rpmfusion-free-updates-testing.repo
cp -fv yum.repos.d/rpmfusion-nonfree.repo /etc/yum.repos.d/rpmfusion-nonfree.repo
cp -fv yum.repos.d/rpmfusion-nonfree-updates.repo /etc/yum.repos.d/rpmfusion-nonfree-updates.repo
cp -fv yum.repos.d/rpmfusion-nonfree-updates-testing.repo /etc/yum.repos.d/rpmfusion-nonfree-updates-testing.repo
cp -fv yum.repos.d/ps3linux.repo /etc/yum.repos.d/ps3linux.repo
yum clean all
yum makecache
yum -y update
printf "\nNEW KERNEL INSTALLED - YOU SHOULD REBOOT\n\nNOTE: Your PS3 may hang the first time it boots your new kernel (2.6.32.26).\nIf this happens, power off the PS3 with the power button and try booting the kernel a second time. It will work fine.\nI do not know why this happens.\n\n"
exit 0