aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcjdns-full-installer.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/cjdns-full-installer.sh b/cjdns-full-installer.sh
index d25b018..b9ab3cf 100755
--- a/cjdns-full-installer.sh
+++ b/cjdns-full-installer.sh
@@ -10,6 +10,8 @@ then
exit 1
fi
cd ..
+
+# Copy binaries to /usr/bin
sudo cp cjdns/cjdroute /usr/bin/
sudo cp cjdns/target/release/makekeys /usr/bin/
sudo cp cjdns/target/release/mkpasswd /usr/bin/
@@ -17,7 +19,15 @@ sudo cp cjdns/target/release/privatetopublic /usr/bin/
sudo cp cjdns/target/release/publictoip6 /usr/bin/
sudo cp cjdns/target/release/randombytes /usr/bin/
sudo cp cjdns/target/release/sybilsim /usr/bin/
+
+# Copy cjdns tools to $AK_WORKDIR/bin
+ln -s `realpath cjdns/tools/dumpLinks` ~/.arching-kaos/bin/dumpLinks
+ln -s `realpath cjdns/tools/cexec` ~/.arching-kaos/bin/cjdns-cexec
+ln -s `realpath cjdns/tools/peerStats` ~/.arching-kaos/bin/peerStats
+
+# Systemd setup
sudo cp cjdns/contrib/systemd/cjdns.service /etc/systemd/system/
sudo cp cjdns/contrib/systemd/cjdns-resume.service /etc/systemd/system
-ln -s `realpath cjdns/tools/dumpLinks` ~/.arching-kaos/bin/dumpLinks
sudo systemctl enable --now cjdns.service
+
+# TODO Or openrc