mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-11 01:37:51 +08:00
🎈 Sync 2026-04-02 20:31:34
This commit is contained in:
1 parent
020b4e1dc3
commit
a794220143
32 files changed
+1032
-531
No files matched your search
@@ -395,6 +395,8 @@ add_ip2route() {
|
||||
local gateway device
|
||||
network_get_gateway gateway "$2"
|
||||
network_get_device device "$2"
|
||||
[ -z "${device}" ] && device=$(ubus call "network.interface.$2" status 2>/dev/null | jsonfilter -e '@.device' 2>/dev/null)
|
||||
[ -z "${device}" ] && [ -d "/sys/class/net/$2" ] && device="$2"
|
||||
[ -z "${device}" ] && device="$2"
|
||||
|
||||
if [ -n "${gateway}" ]; then
|
||||
|
||||
Reference in new issue
Block a user