Developing lightweight computation at the DSG edge

Commit 67bf3aa8 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

Add snippet for using ath10k-ct drivers in ath79/generic


Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent d8b14a23
#!/bin/bash
. options.conf
. options.conf.local
dirname="$release/ath79/generic/ib"
filename="$dirname/.profiles.mk"
echo "File $filename will be patched"
[ ! -d $dirname ] && {
echo "$dirname does not exist. Before applying this snippet you must have the imagebuilder ready."
exit 1
}
[ ! -f $filename ] && {
echo "$filename does not exist. Before applying this snippet you must have the profiles' packages listed."
exit 1
}
sed -i -e 's/kmod-ath10k/kmod-ath10k-ct/g' $filename
sed -i -e 's/ath10k-firmware-qca988x/ath10k-firmware-qca988x-ct/g' $filename
sed -i -e 's/ath10k-firmware-qca9887/ath10k-firmware-qca9887-ct/g' $filename
#Ensure no double "-ct"s are appended
sed -i -e 's/kmod-ath10k-ct-ct/kmod-ath10k-ct/g' $filename
sed -i -e 's/ath10k-firmware-qca988x-ct-ct/ath10k-firmware-qca988x-ct/g' $filename
sed -i -e 's/ath10k-firmware-qca9887-ct-ct/ath10k-firmware-qca9887-ct/g' $filename
#( cd $base_feed && git apply $patch_file && {
# echo "Patch applied, now you can use the special country US when you deploy a mesh network on International Waters"
#} || echo "Patch does not apply, maybe it is already applied or OpenWrt source has changed" )
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