diff options
Diffstat (limited to 'lib/_ak_network')
-rwxr-xr-x | lib/_ak_network | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/_ak_network b/lib/_ak_network index d23d913..c6d048e 100755 --- a/lib/_ak_network +++ b/lib/_ak_network @@ -17,11 +17,13 @@ ### You should have received a copy of the GNU General Public License ### along with this program. If not, see <http://www.gnu.org/licenses/>. ### -source $AK_LIBDIR/_ak_log -source $AK_LIBDIR/_ak_network_ipfs -source $AK_LIBDIR/_ak_network_cjdns -source $AK_LIBDIR/_ak_network_yggdrasil -source $AK_LIBDIR/_ak_network_stellar +source $AK_LIBDIR/_ak_lib_load +_ak_lib_load _ak_log +_ak_lib_load _ak_network_ipfs +_ak_lib_load _ak_network_cjdns +_ak_lib_load _ak_network_yggdrasil +_ak_lib_load _ak_network_stellar +_ak_lib_load _ak_network_incoming function _ak_network_scan(){ if [ ! -z $1 ] && [ -n "$1" ] @@ -31,6 +33,7 @@ function _ak_network_scan(){ ipfs) _ak_network_ipfs_scan; exit;; cjdns) shift; _ak_network_cjdns_scan $1; exit;; yggdrasil) shift; _ak_network_yggdrasil_scan $1; exit;; + incoming) shift; _ak_network_incoming_scan; exit;; * ) _ak_log_error "Unknown network $1";exit 1;; esac else @@ -49,10 +52,11 @@ function _ak_network_show_peers(){ cjdns) _ak_network_cjdns_show_peers; exit;; ipfs) _ak_network_ipfs_show_peers; exit;; yggdrasil) _ak_network_yggdrasil_show_peers; exit;; + incoming) _ak_network_incoming_show_peers; exit;; * ) _ak_log_error "Unknown network $1";exit 1;; esac else - (_ak_network_stellar_show_peers; _ak_network_cjdns_show_peers; _ak_network_yggdrasil_show_peers; _ak_network_ipfs_show_peers) | \ + (_ak_network_stellar_show_peers; _ak_network_cjdns_show_peers; _ak_network_yggdrasil_show_peers; _ak_network_incoming_show_peers) | \ jq -j | \ sed -e 's/]\[/,/g' | \ jq @@ -72,3 +76,5 @@ function _ak_network_connect(){ _ak_network_ipfs_connect_bootstrap fi } + +_ak_log_debug "_ak_network loaded $(caller)" |