This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # setup_sd_longevity_v2.sh — Enphase Envoy eMMC Longevity Setup (v3 snapshot runtime) | |
| # Run as root on the Envoy after inserting the SD card (via USB adapter) | |
| # | |
| # Usage: | |
| # bash setup_sd_longevity_v2.sh # Install / re-install | |
| # bash setup_sd_longevity_v2.sh --uninstall # Remove v3 runtime | |
| # bash setup_sd_longevity_v2.sh --update # Update runtime only | |
| # bash setup_sd_longevity_v2.sh --update --seed <backup_dir> # Update + seed | |
| # bash setup_sd_longevity_v2.sh --seed <backup_dir> # Seed only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import base64 | |
| import hashlib | |
| import ipaddress | |
| import socket | |
| import time | |
| import xml.etree.ElementTree as ET | |
| import requests | |
| import urllib3 |