mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
24 lines
849 B
Bash
Executable File
24 lines
849 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Make backup of original firmware
|
|
if [[ ! -e /usr/lib/firmware/htc_7010.fw.backup ]];
|
|
then
|
|
cp /usr/lib/firmware/htc_7010.fw /usr/lib/firmware/htc_7010.fw.backup
|
|
cp /usr/lib/firmware/htc_9271.fw /usr/lib/firmware/htc_9271.fw.backup
|
|
echo "Made backup of original files (old directory)"
|
|
fi
|
|
|
|
if [[ ! -e /usr/lib/firmware/ath9k_htc/htc_7010-1.4.0.fw.backup ]];
|
|
then
|
|
cp /usr/lib/firmware/ath9k_htc/htc_7010-1.4.0.fw /usr/lib/firmware/ath9k_htc/htc_7010-1.4.0.fw.backup
|
|
cp /usr/lib/firmware/ath9k_htc/htc_9271-1.4.0.fw /usr/lib/firmware/ath9k_htc/htc_9271-1.4.0.fw.backup
|
|
echo "Made backup of original files (new directory)"
|
|
fi
|
|
|
|
cp htc_*.fw /usr/lib/firmware/
|
|
cp htc_7010.fw /usr/lib/firmware/ath9k_htc/htc_7010-1.4.0.fw
|
|
cp htc_9271.fw /usr/lib/firmware/ath9k_htc/htc_9271-1.4.0.fw
|
|
echo "Copied compiled firmware to the system"
|
|
|