2023-04-01 10:00:13 +08:00

22 lines
363 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=19
start() {
COUNTER=1
while [ $COUNTER -le 5 ]; do
INEX=$(uci -q get network.wan$COUNTER)
if [ -z $INEX ]; then
break
else
uci delete network.wan$COUNTER
uci commit network
fi
let COUNTER=COUNTER+1
done
uci delete network.wg0
uci delete network.wg1
uci commit network
}