Skip to content

Commit

Permalink
fix REMOVE_PUBKEY_INHAUS for gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
fda77 committed Nov 7, 2024
1 parent 5c0b3a6 commit a8c105c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions config/ui/patches.in
Original file line number Diff line number Diff line change
Expand Up @@ -876,8 +876,9 @@ config FREETZ_REMOVE_PUBKEY_INHAUS
Removes /etc/avm_firmware_public_key4 or
/etc/avm_firmware_public_key3, just 266 bytes.

Some inhaus firmwares use another file for signature validation,
*key4 for router and *key3 for powerline & repeater devices.
Some inhaus firmwares use another file for signature validation:
- *key4 for devices with dect (router)
- *key3 for devices without dect (powerline & repeater, except gateway)

config FREETZ_REMOVE_TR069
bool "Remove tr069" if FREETZ_SHOW_EXPERT
Expand Down
2 changes: 1 addition & 1 deletion patches/scripts/265-remove_pubkey.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo1 "removing public signature"
file="${FILESYSTEM_MOD_DIR}/etc/avm_firmware_public_key1"
rm_files "$file"

[ "$FREETZ_TYPE_EXTENDER" == "y" ] && file="3" || file="4"
[ "$FREETZ_AVM_HAS_DECT" != "y" ] && file="3" || file="4"
file="${FILESYSTEM_MOD_DIR}/etc/avm_firmware_public_key$file"
if [ -e "$file" ]; then
if [ "$FREETZ_REMOVE_PUBKEY_INHAUS" == "y" ]; then
Expand Down

0 comments on commit a8c105c

Please sign in to comment.