diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-04 17:35:17 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-04 17:35:17 +0300 |
commit | 684dd3e038ae90f0fd1f53211ce4d30141e35bf2 (patch) | |
tree | 19b30dfd1b022cc0a2439898a49096bea589a024 /cjdns-full-installer.sh | |
parent | 2c28d8dd96327db1d51e86eb06573f7597e29cfc (diff) | |
download | arching-kaos-tools-684dd3e038ae90f0fd1f53211ce4d30141e35bf2.tar.gz arching-kaos-tools-684dd3e038ae90f0fd1f53211ce4d30141e35bf2.tar.bz2 arching-kaos-tools-684dd3e038ae90f0fd1f53211ce4d30141e35bf2.zip |
Refactoring
Diffstat (limited to 'cjdns-full-installer.sh')
-rwxr-xr-x | cjdns-full-installer.sh | 12 |
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 |