wait-until-policy-loaded
来自「ipsec vpn」· 代码 · 共 21 行
TXT
21 行
#!/bin/sh# Wait until --listen succeeds, and then look for trap route# caused by "packetdefault"# This will delay until pluto is startedcount=20until [ $count -eq 0 ] || ipsec whack --listen >/dev/null 2>&1do count=`expr $count - 1` sleep 2done until [ $count -eq 0 ] || (ipsec eroute | grep 0.0.0.0/0 > /dev/null)do count=`expr $count - 1` sleep 1done
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?