32 lines
1.2 KiB
Bash
Executable file
32 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
cd /tmp || exit
|
|
|
|
# ==========================================
|
|
# 1. ARM64 (64-Bit) verarbeiten
|
|
# ==========================================
|
|
echo "Lade libcap2 für ARM64 herunter..."
|
|
apt download libcap2:arm64
|
|
dpkg-deb -x libcap2_*_arm64.deb libcap-arm64
|
|
|
|
echo "Kopiere ARM64-Dateien..."
|
|
cp -d libcap-arm64/usr/lib/aarch64-linux-gnu/libcap.so.* /home/dieter/spannung/sysroot-arm64/usr/lib/aarch64-linux-gnu/
|
|
|
|
# ==========================================
|
|
# 2. ARM32 v7 / armhf (32-Bit) verarbeiten
|
|
# ==========================================
|
|
echo "Lade libcap2 für ARM32 (armhf) direkt herunter..."
|
|
# Bereinigung alter Versuche
|
|
rm -f libcap2_*_armhf.deb
|
|
rm -rf libcap-armhf
|
|
|
|
# Download direkt von den Ubuntu-Servern (Sicherheitsupdates/Main)
|
|
#wget https://de.archive.ubuntu.com/ubuntu/pool/main/libc/libcap2/libcap2_2.66-5ubuntu2.4_armhf.deb
|
|
wget http://ports.ubuntu.com/ubuntu-ports/pool/main/libc/libcap2/libcap2_2.66-5ubuntu2.4_armhf.deb
|
|
|
|
dpkg-deb -x libcap2_*_armhf.deb libcap-armhf
|
|
|
|
echo "Kopiere ARM32-Dateien..."
|
|
cp -d libcap-armhf/usr/lib/arm-linux-gnueabihf/libcap.so.* /home/dieter/spannung/sysroot-arm32/usr/lib/arm-linux-gnueabihf/
|
|
|
|
echo "✅ Fertig! Bereinige temporäre Dateien..."
|
|
rm -f libcap2_*.deb
|