Commit 5bffb9e0 authored by Joanne Hugé's avatar Joanne Hugé

add script to patch amarisoft

parent f5cebde5
#!/bin/bash
AMARISOFT="$(realpath $1)"
VERSION="$(echo $(basename $1) | cut -d. -f2)"
DIR="$(dirname $(realpath $0))"
TMP="/tmp/$VERSION-$(date +%s)"
mkdir $TMP
cd $TMP
tar -xzvf $AMARISOFT
cd $VERSION
rm -f *aarch64*
for f in $(ls -1 *linux*.tar.gz); do
tar -xzvf $f
done
cd trx_sdr-linux-$VERSION
patch -p1 kernel/main.c < $DIR/kernel-ppm.patch
patch -p1 install.sh < $DIR/sdr-install.patch
cd ..
for f in $(ls -1 *linux*.tar.gz); do
rm -f $f
tar -czvf $f "$(echo $f | cut -d. -f1)"
rm -rf "$(echo $f | cut -d. -f1)"
done
cd ..
tar -czvf "$DIR/$(basename $AMARISOFT | cut -d\. -f1-2).patched.tar.gz" $VERSION
rm -rf $TMP
--- old-install.sh 2024-09-02 17:43:26.991954439 +0200
+++ install.sh 2024-09-02 17:43:03.472236155 +0200
@@ -651,7 +651,7 @@
CMD+=" -force"
fi
echo "Check firmwares$INFO"
- $CMD
+ #$CMD (ORS PATCH: Don't Upgrade SDR board with sdr_util upgrade)
fi
exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment