mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 01:45:13 +08:00
🚀 Sync 2026-03-20 14:18:42
This commit is contained in:
1 parent
3f5e547363
commit
72b1d9508b
81 files changed
+2797
-975
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$ACTION" = add -a "x$DEVTYPE" = xbridge ]; then
|
||||
if [ "$DEVICENAME" = "docker0" ] || echo "$DEVICENAME" | grep -qE '^br-[0-9a-f]{12}$'; then
|
||||
if [ "$(uci -q get dockerd.globals.iptables)" = "1" ]; then
|
||||
echo "1" >/sys$DEVPATH/bridge/nf_call_iptables
|
||||
fi
|
||||
if [ "$(uci -q get dockerd.globals.ip6tables)" = "1" ]; then
|
||||
echo "1" >/sys$DEVPATH/bridge/nf_call_ip6tables
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
Reference in new issue
Block a user