diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-20 18:31:37 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-20 18:31:37 +0300 |
commit | 71f580970272550e316d6b006c43dd417849f50c (patch) | |
tree | 321b7a06494aae5ced2820719f8bcd8bacfeb5e0 | |
parent | 62317f5a58ffb2161d4fe67aa83a64a4cf738eff (diff) | |
download | arching-kaos-tools-71f580970272550e316d6b006c43dd417849f50c.tar.gz arching-kaos-tools-71f580970272550e316d6b006c43dd417849f50c.tar.bz2 arching-kaos-tools-71f580970272550e316d6b006c43dd417849f50c.zip |
Falling back to --whole scan if cjdns-tools are not found
-rwxr-xr-x | lib/_ak_network | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/_ak_network b/lib/_ak_network index 62f410f..5d2900c 100755 --- a/lib/_ak_network +++ b/lib/_ak_network @@ -135,14 +135,16 @@ _ak_network_scan_cjdns_dump(){ which dumpLinks > /dev/null 2>&1 if [ $? -ne 0 ] then - echo "You need to install cjdns and cjdns-tools" - exit 1 + echo "You need to install cjdns and cjdns-tools ... falling back to -w" + _ak_network_scan_cjdns_full + exit 0 fi which publictoip6 > /dev/null 2>&1 if [ $? -ne 0 ] then - echo "You need to install cjdns and cjdns-tools" - exit 1 + echo "You need to install cjdns and cjdns-tools ... falling back to -w" + _ak_network_scan_cjdns_full + exit 0 fi TEMPDIR="$(_ak_make_temp_directory)" AK_ZPEERSFILE="$HOME/.arching-kaos/peersFile" |