3 ### Start up peers registered in tripe-ipif's table
5 ### (c) 2012 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of Trivial IP Encryption (TrIPE).
12 ### TrIPE is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU General Public License as published by
14 ### the Free Software Foundation; either version 2 of the License, or
15 ### (at your option) any later version.
17 ### TrIPE is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ### GNU General Public License for more details.
22 ### You should have received a copy of the GNU General Public License
23 ### along with TrIPE; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 ###--------------------------------------------------------------------------
29 ### This script will tell a tripe server to associate with all of the peers
30 ### named in the $TRIPEDIR/ipif.tab file. See `tripe-ipif' for a description
31 ### of the configuration file.
35 : ${TRIPEDIR=@configdir@}
37 ## Trundle through the table.
38 while read name remote_ext local_int remote_int routes
; do
40 ## Ignore comments, and unknown remote-external addresses.
41 case "$name" in "" |
"#"*) continue ;; esac
42 case "$remote_ext" in -) continue ;; esac
47 *:*) port
=${remote_ext#*:}; addr
=${remote_ext%:*} ;;
52 tripectl ADD
"$name" "$fam" "$addr" "$port"
54 done <$TRIPEDIR/ipif.tab
56 ###----- That's all, folks --------------------------------------------------