Displaying 2 results from an estimated 2 matches for "foreach_net".
Did you mean:
for_each_net
2013 Feb 10
1
tinc 1.1pre. How to automatically start vpn tunnels? How to change the installation/config path to the same as tinc 1.0.x version from ubuntu repository?
Hi!
I have compiled and installed tinc 1.1pre5 on a ubuntu machine.
With the tinc 1.0.x version that is included in the ubuntu repository I am used to having the config files in /etc/tinc/ and where each vpn has a own directory.
The file nets.boot placed in /etc/tinc where I can specify which vpn tunnels that is going to start automatically.
How can I get the vpn tunnels to start automatically
2016 Feb 25
0
tinc - logging
...init script.
. /lib/lsb/init-functions
DAEMON="/usr/sbin/tincd"
NAME="tinc"
DESC="tinc daemons"
TCONF="/etc/tinc"
NETSFILE="$TCONF/nets.boot"
NETS=""
test -f $DAEMON || exit 0
[ -r /etc/default/tinc ] && . /etc/default/tinc
# foreach_net "what-to-say" action [arguments...]
foreach_net() {
if [ ! -f $NETSFILE ] ; then
echo "Please create $NETSFILE."
exit 0
fi
echo -n "$1"
shift
egrep '^[ ]*[a-zA-Z0-9_-]+' $NETSFILE | while read net args; do
echo -n " $net"
&qu...