From 684dd3e038ae90f0fd1f53211ce4d30141e35bf2 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 4 Jun 2024 17:35:17 +0300 Subject: Refactoring --- cjdns-full-installer.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3