fix RPI compile target and make sure $HOME/.lokinet/ exists before trying to download to it

pull/70/head
Ryan Tharp 6 years ago
parent 1f96584c94
commit b707809efa

@ -114,6 +114,7 @@ endif()
if(NOT DEBIAN)
if(NOT ANDROID)
if(NOT RPI)
if (NOT USE_AVX2)
set(CRYPTO_FLAGS -march=core2 -mtune=native)
set(CMAKE_ASM_FLAGS "-march=core2")
@ -123,6 +124,7 @@ set(CMAKE_ASM_FLAGS "-march=haswell -mtune=native ${CMAKE_ASM_FLAGS} $ENV{ASFLAG
endif()
endif()
endif()
endif()
if(RPI)
add_definitions(-DRPI)

@ -4,4 +4,7 @@
if [ "X$1" = "X" ] ; then url="https://i2p.rocks/i2procks.signed" ; else url="$1" ; fi
echo "downloading $url"
wget -O $HOME/.lokinet/bootstrap.signed "$url" || echo "failed to download bootstrap from $url"
if [ ! -d $HOME/.lokinet/]; then
mkdir $HOME/.lokinet
fi
wget -O $HOME/.lokinet/bootstrap.signed "$url" || echo "failed to download bootstrap from $url"

Loading…
Cancel
Save