new scripts freebox: reboot, get token

This commit is contained in:
2026-07-24 21:44:42 +02:00
parent ba336aaf14
commit 5a4b1a3bf1
5 changed files with 168 additions and 0 deletions
+19
View File
@@ -26,6 +26,25 @@ It assumes wireguard connection names start with "wg-"
You can check for DNS leaks with [this website](https://www.dnsleaktest.com/)
## freebox
Scripts to interact with a Freebox OS using the official API.
### get_token.sh
Registers a new application with the Freebox and requests authorisation.
After approving the request on the Freebox, the generated app token is saved to `freebox_app_token.txt`.
By default generates a token for the `APP_ID` `fr.bash.reboot`
curl and jq are needed.
### freebox_reboot.sh
Authenticates using the app token from `freebox_app_token.txt` and sends a reboot request to the Freebox over the HTTPS Freebox OS API.
Requires the Freebox ECC Root CA certificate (`freebox_ecc_root_ca.pem`) to be in the same directory as the script.
By default the token should be for the `APP_ID` `fr.bash.reboot`.
curl, openssl and jq are needed.
By default an app is not allowed to reboot the freebox, to allow it, go in "paramètre de la freebox -> gestion des accès -> application", then modify the permissions for your app and check "modification des réglages de la Freebox".
## Other random scripts
### belter_tension_calculator.sh