blob: 0dbaffed7d77c116889e52ecb9ea649cf8b34d9e (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
connected=`<%= scope.lookupvar('strongswan::base::binary_name') %>_connected_hosts`
grep -El '^conn' /etc/ipsec.d/hosts/* | while read line; do
host=`basename $line '.conf'`
echo $connected | grep -q $host
[ $? -gt 0 ] && <%= scope.lookupvar('strongswan::base::binary_name') %> up $host
done
|