mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 03:23:56 +08:00
⛅ Sync 2026-10-07 23:59:28
This commit is contained in:
1 parent
26ea6d17f5
commit
5a632575da
108 files changed
+420
-455
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ PKG_SOURCE_URL:=https://github.com/Ysurac/dsvpn.git
|
||||
PKG_SOURCE_VERSION:=aae011339bba733d3fa4ffe8b5dd95dab2efb4ab
|
||||
PKG_NAME:=dsvpn
|
||||
PKG_VERSION:=0.1.5
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
|
||||
+5
-2
@@ -75,9 +75,12 @@ start_instance() {
|
||||
}
|
||||
key=""
|
||||
|
||||
if [ "$(uci -q get network.omrvpn)" != "" ] && [ "$(uci -q get network.omrvpn)" != "$dev" ]; then
|
||||
# "uci get network.omrvpn" is the section type, never the device: this
|
||||
# ran on every start, and a bare "uci commit" flushed every package's
|
||||
# pending changes, not only this one
|
||||
if [ -n "$(uci -q get network.omrvpn)" ] && [ "$(uci -q get network.omrvpn.device)" != "$dev" ]; then
|
||||
uci -q set network.omrvpn.device=$dev
|
||||
uci -q commit
|
||||
uci -q commit network
|
||||
fi
|
||||
|
||||
ip addr flush $dev
|
||||
|
||||
Reference in new issue
Block a user