This commit is contained in:
parent
95dae0b2d7
commit
bc4f6ab09c
10
amdgpu.sh
10
amdgpu.sh
@ -23,7 +23,7 @@ find . -name \*20.04*.deb -exec rm -fv {} \;
|
||||
# amdgpu-dkms-firmware dir
|
||||
mkdir -p ./amdgpu-dkms-firmware
|
||||
cd ./amdgpu-dkms-firmware
|
||||
wget http://repo.radeon.com/amdgpu/5.5.3/ubuntu/pool/main/a/amdgpu-dkms/amdgpu-dkms_6.0.5.50503-1620033.20.04_all.deb
|
||||
wget http://repo.radeon.com/amdgpu/5.5.3/ubuntu/pool/main/a/amdgpu-dkms/amdgpu-dkms-firmware_6.0.5.50503-1620033.20.04_all.deb
|
||||
# Retrun to AMDGPU MIRROR
|
||||
cd ../
|
||||
mkdir -p ./output
|
||||
@ -37,6 +37,14 @@ dpkg-sig --sign builder ./output/*.deb
|
||||
# Pull down existing ppa repo db files etc
|
||||
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
|
||||
|
||||
# Check if the amdgpu component exists
|
||||
if cat ./output/repo/conf/distributions | tr '\n' ',' | grep "Codename: lunar" | grep "Components: amdgpu"
|
||||
then
|
||||
true
|
||||
else
|
||||
echo -e "\nOrigin: ppa.pika-os.com\nLabel: apt repository\nCodename: lunar \nArchitectures: source i386 amd64\nComponents: amdgpu\nDescription: pika-os amdgpu repo\nSignWith: AB78C60DFB581603\nPull: lunar" >> ./output/repo/conf/distributions
|
||||
fi
|
||||
|
||||
# Add the new package to the repo
|
||||
reprepro -C amdgpu -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user