Script to create wireguard client entries from zip file on the GL-S1300

https://gist.github.com/sboger/618d3cc348f4311eafb70f51db75ac63

(get azirevpn-configs.zip & wg-helper.py and place them in /data/wireguard dir. this works without needing to install any extra python libraries AFTER I installed gl-home-assistant, as it sets up python. YMMV)

ssh GL-S1300
root@GL-S1300:~# cd /data/
root@GL-S1300:/data# mkdir wireguard
root@GL-S1300:/data# cd wireguard/
[copy files]
root@GL-S1300:/data/wireguard# ls
azirevpn-configs.zip wg-helper.py
root@GL-S1300:/data/wireguard# chmod + wg-helper.py
root@GL-S1300:/data/wireguard# ./wg-helper.py azirevpn-configs.zip
(done. configs are appended to /etc/config/wireguard)

2 Likes

thanks for your share