ppp-sync/amdgpu.sh

41 lines
1.1 KiB
Bash
Raw Normal View History

2023-08-23 13:01:20 +02:00
#! /bin/bash
2023-08-23 13:23:16 +02:00
set -e
2023-08-23 13:08:14 +02:00
2023-08-23 12:42:54 +02:00
# Sign the packages
2023-08-23 12:49:38 +02:00
#dpkg-sig --sign builder ./output/*.deb
2023-08-23 12:42:54 +02:00
# Pull down existing ppa repo db files etc
2023-08-23 12:49:38 +02:00
#rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
2023-08-23 13:23:16 +02:00
apt install -y tree
2023-08-23 13:44:37 +02:00
# AMDGPU MIRROR
2023-08-23 13:01:20 +02:00
mkdir -p ./output/amdgpu
2023-08-23 13:23:16 +02:00
cd ./output/amdgpu
2023-08-23 13:44:37 +02:00
# 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
# Retrun to AMDGPU MIRROR
cd ../
# amdgpu drm dir
mkdir -p ./libd
cd ./libd
wget --recursive --no-parent -R "20.04*.deb" -m http://repo.radeon.com/amdgpu/5.5.3/ubuntu/pool/main/libd/
# Retrun to AMDGPU MIRROR
cd ../
# amdgpu proprietary dir
mkdir -p ./proprietary
cd ./proprietary
wget --recursive --no-parent -R "20.04*.deb" -m https://repo.radeon.com/amdgpu/5.5.3/ubuntu/pool/proprietary/
2023-08-23 13:47:25 +02:00
# Retrun to AMDGPU MIRROR
cd ../
2023-08-23 13:44:37 +02:00
# Check final result
2023-08-23 13:23:16 +02:00
tree
2023-08-23 12:42:54 +02:00
# Add the new package to the repo
2023-08-23 12:49:38 +02:00
#reprepro -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
2023-08-23 12:42:54 +02:00
# Push the updated ppa repo to the server
2023-08-23 12:49:38 +02:00
#rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/