mirror of
https://github.com/tomeshnet/prototype-cjdns-pi
synced 2025-10-05 23:52:49 +02:00
Yggdrasil IPTunnel now does not change config files Yggdrasil IPtunnel drop in service adjustment Yggdrsail IPTunnel supports IPv6 and routed IPv6 Yggdrsail version bump Support for x86 and x64 Profile selection menu format changed in Dialog Rewritten and simplified board detection IPFS Improvments #284 CJDNS now module Prototype can run without CJDNS now Better docs Grafan database now can be removed when uninstalling Moved network config to interface.d model Removed Network Manager Added Modules.md Added confSet function and implemented confget/confset config files NodeJS now shared module NodeJS version bump MESH_NAME now a config Added ipv6 netcat option Localized Patch Foo in TOMESH repo to prevent version conflicts and outage Added support for PI4 Added support for Buster Fixed ETH0 vs BR0 issue on espressoBIN Prometheus version bump Raspberry Pi Watch Dog Timer
77 lines
2.0 KiB
Bash
Executable File
77 lines
2.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
if [[ -z "$(command -v sudo)" ]]; then
|
|
apt-get install -y sudo || (
|
|
echo Sudo is not installed and cannot be installed.
|
|
echo Please run
|
|
echo " apt-get install sudo "
|
|
echo " /usr/sbin/usermod -aG sudo $USER"
|
|
echo as root.
|
|
echo You may need to log in again for changes to take effect.
|
|
exit 1
|
|
)
|
|
fi
|
|
|
|
# Use provided repository or default to tomeshnet/prototype-cjdns-pi
|
|
if [ -z "$GIT_PROTOTYPE_CJDNS_PI" ]; then
|
|
GIT_PROTOTYPE_CJDNS_PI="https://github.com/tomeshnet/prototype-cjdns-pi.git"
|
|
fi
|
|
|
|
# Use provided tag or default to master
|
|
if [ -z "$TAG_PROTOTYPE_CJDNS_PI" ]; then
|
|
TAG_PROTOTYPE_CJDNS_PI=master
|
|
fi
|
|
|
|
if ps xa | awk '{print $5}' | grep -q dpkg; then
|
|
echo -e "\e[1;31mDPKG is running in the background.\e[0m"
|
|
read -p "Would you like to KILL it to continue (Y/n)? " -n 1 -r
|
|
echo ""
|
|
if [[ $REPLY =~ ^[Nn]$ ]]; then
|
|
echo -e "\e[1;31mPlease stop DPKG Before Proceeding!\e[0m"
|
|
exit
|
|
else
|
|
echo -e "\e[1;32mKilling DPKG and continuing\e[0m"
|
|
sudo killall dpkg
|
|
fi
|
|
fi
|
|
|
|
# Get git
|
|
# True required to avoid odd armbian bug. Update does work but reports missing file.
|
|
sudo apt-get update -y || true
|
|
if ! [ "$(command -v git)" ]; then
|
|
sudo apt-get install git -y
|
|
fi
|
|
|
|
# Download prototype-cjdns-pi repo
|
|
if ! [ -d "prototype-cjdns-pi" ]; then
|
|
git clone $GIT_PROTOTYPE_CJDNS_PI
|
|
fi
|
|
cd prototype-cjdns-pi/scripts
|
|
git checkout $TAG_PROTOTYPE_CJDNS_PI
|
|
|
|
# Export environment variables
|
|
export WITH_YGGDRASIL
|
|
export WITH_YGGDRASIL_IPTUNNEL
|
|
export WITH_MESH_POINT
|
|
export WITH_AD_HOC
|
|
export WITH_WIFI_AP
|
|
export WITH_FIREWALL
|
|
export WITH_CJDNS_IPTUNNEL
|
|
export WITH_IPFS
|
|
export WITH_PROMETHEUS_NODE_EXPORTER
|
|
export WITH_PROMETHEUS_SERVER
|
|
export WITH_GRAFANA
|
|
export WITH_EXTRA_TOOLS
|
|
export WITH_EXTRA_NETCAT
|
|
export WITH_WATCHDOG
|
|
export WITH_YRD
|
|
export WITH_SSB
|
|
export WITH_SSB_PATCHFOO
|
|
export WITH_SSB_WEB_PI
|
|
export WITH_IPFS_PI_STREAM
|
|
|
|
export UNATTENDED
|
|
# Run the actual installation script
|
|
./install2
|