mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-12-27 07:35:59 -05:00
26 lines
427 B
Bash
26 lines
427 B
Bash
#!/bin/bash
|
|
|
|
if [ ! -d $1/pool ]; then
|
|
echo "$1/pool not exist"
|
|
exit 1
|
|
fi
|
|
|
|
rm -rf mips64el
|
|
mkdir mips64el
|
|
cd mips64el
|
|
|
|
cat ../mips64ellibs | while read line; do
|
|
find "$1/pool" -name "*${line}*.deb" | while read deb; do
|
|
echo "extract ${deb##*/} ..."
|
|
dpkg -x $deb .
|
|
done
|
|
done
|
|
|
|
ls -1 ../download/*mips64el.deb | while read line; do
|
|
echo "extract ${line} ..."
|
|
dpkg -x "$line" .
|
|
done
|
|
|
|
cd ..
|
|
|