You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.6 KiB
67 lines
2.6 KiB
#!/bin/bash |
|
|
|
myfiles=$HOME/myfiles |
|
myzipfiles=$HOME/myfiles/zips |
|
|
|
if [ ! -d "${myzipfiles}" ] |
|
then |
|
mkdir -p "${myzipfiles}" |
|
fi |
|
|
|
# all the content of the directory "myfiles" will be added to iso |
|
if [ ! -e "${myzipfiles}"/gnirehtet-java-v2.5.1.zip ] |
|
then |
|
pushd "${myzipfiles}" || return 1 |
|
wget https://github.com/Genymobile/gnirehtet/releases/download/v2.5.1/gnirehtet-java-v2.5.1.zip |
|
popd || return 1 |
|
fi |
|
if [ ! -e "${myzipfiles}"/dvb-firmware-osmc.zip ] |
|
then |
|
pushd "${myzipfiles}" || return 1 |
|
wget https://github.com/osmc/dvb-firmware-osmc/archive/refs/heads/master.zip --output-document=dvb-firmware-osmc.zip |
|
popd || return 1 |
|
fi |
|
if [ ! -e "${myzipfiles}"/alsa-firmware-1.2.4.tar.bz2 ] |
|
then |
|
pushd "${myzipfiles}" || return 1 |
|
wget https://www.alsa-project.org/files/files/pub/firmware/alsa-firmware-1.2.4.tar.bz2 |
|
popd || return 1 |
|
fi |
|
if [ ! -e "${myzipfiles}"/libdvdcss-1.4.3.tar.bz2 ] |
|
then |
|
pushd "${myzipfiles}" || return 1 |
|
wget https://download.videolan.org/pub/libdvdcss/1.4.3/libdvdcss-1.4.3.tar.bz2 |
|
popd || return 1 |
|
fi |
|
|
|
cat > "${myfiles}"/libdvdcss2.README <<"EOF" |
|
libdvd-pkg: Downloading orig source... |
|
I: libdvdcss_1.4.3 |
|
/usr/bin/wget --tries=3 --timeout=40 --read-timeout=40 --continue -O libdvdcss_1.4.3.orig.tar.bz2 \ |
|
https://download.videolan.org/pub/libdvdcss/1.4.3/libdvdcss-1.4.3.tar.bz2 \ |
|
|| /usr/bin/uscan --noconf --verbose --rename --destdir=/usr/src/libdvd-pkg --check-dirname-level=0 --force-download --download-current-version /usr/share/libdvd-pkg/debian |
|
--2026-01-02 21:06:57-- https://download.videolan.org/pub/libdvdcss/1.4.3/libdvdcss-1.4.3.tar.bz2 |
|
Résolution de download.videolan.org (download.videolan.org)… 213.36.253.2, 2a01:e0d:1:3:58bf:fa02:c0de:5 |
|
Connexion à download.videolan.org (download.videolan.org)|213.36.253.2|:443… connecté. |
|
requête HTTP transmise, en attente de la réponse… 200 OK |
|
Taille: 388404 (379K) [application/octet-stream] |
|
Sauvegarde en: «libdvdcss_1.4.3.orig.tar.bz2» |
|
libdvdcss_1.4.3.orig.tar.bz2 100%[==============================================================>] 379,30K 725KB/s ds 0,5s |
|
2026-01-02 21:06:58 (725 KB/s) — «libdvdcss_1.4.3.orig.tar.bz2» sauvegardé [388404/388404] |
|
EOF |
|
|
|
cat > "${myfiles}"/cs46xx.README <<"EOF" |
|
# not included |
|
apt install alsa-utils |
|
tar xvf alsa-firmware-1.2.4.tar.bz2 |
|
cd alsa-firmware-1.2.4/cs46xx |
|
mkdir /lib/firmware/cs46xx |
|
cp ba1 cwc4630 cwcasync cwcbinhack cwcdma cwcsnoop /lib/firmware/cs46xx |
|
modprobe -r snd-cs46xx |
|
modprobe snd-cs46xx |
|
adduser yourusername audio |
|
alsamixer : demute |
|
aplay /usr/share/sounds/alsa/Noise.wav |
|
speaker-test -t sine -f 440 -c 2 |
|
speaker-test -t wav -c 2 |
|
EOF
|
|
|