By consistently using the `expect-connection` helper we can avoid pretty much all previously needed calls to sleep.
11 lines
358 B
Plaintext
11 lines
358 B
Plaintext
moon::rm /etc/ipsec.d/private/moonKey.pem
|
|
moon::rm /etc/ipsec.d/cacerts/strongswanCert.pem
|
|
sun::rm /etc/ipsec.d/private/sunKey.pem
|
|
sun::rm /etc/ipsec.d/cacerts/strongswanCert.pem
|
|
moon::iptables-restore < /etc/iptables.rules
|
|
sun::iptables-restore < /etc/iptables.rules
|
|
moon::ipsec start
|
|
sun::ipsec start
|
|
moon::expect-connection net-net
|
|
moon::ipsec up net-net
|