Files
quectel-rgmii-toolkit/ipk-source/luci-app-go-wireguard/root/usr/lib/wireguard/text.sh
Cameron Thompson 59be0e546f Rename package and rebuild opkg-feed
- Added luci-app-GO-wireguard

(Luci app for Wireguard pulled from GoldenOrb)
2025-01-30 20:50:26 -05:00

19 lines
372 B
Bash
Executable File

#!/bin/sh
. /lib/functions.sh
log() {
logger -t "Wireguard TextConf" "$@"
}
conf1=$1
conf=$(echo $conf1)
conf=$(echo "$conf" | tr "?" "~")
boot=$(echo "$conf" | cut -d~ -f1)
iname=$(echo "$conf" | cut -d~ -f2)
conf=$(echo "$conf1" | tr "?" "~")
confile=$(echo "$conf" | cut -d~ -f3)
echo "$confile" > /tmp/confile
/usr/lib/wireguard/conf.sh $iname /tmp/confile $boot