diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-02-13 02:26:07 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-02-13 02:26:07 +0200 |
commit | d744e9daee83ce703405a4ba4d0303daed0d1527 (patch) | |
tree | e19ebc03eeeeb18506faf2e7b7471acb14b5d820 /cjdns-full-installer.sh | |
parent | 2d10a049020b844bdfb9bbc62063bc4b07521536 (diff) | |
download | arching-kaos-tools-d744e9daee83ce703405a4ba4d0303daed0d1527.tar.gz arching-kaos-tools-d744e9daee83ce703405a4ba4d0303daed0d1527.tar.bz2 arching-kaos-tools-d744e9daee83ce703405a4ba4d0303daed0d1527.zip |
Clone and install cjdns script
Diffstat (limited to 'cjdns-full-installer.sh')
-rwxr-xr-x | cjdns-full-installer.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cjdns-full-installer.sh b/cjdns-full-installer.sh new file mode 100755 index 0000000..737d905 --- /dev/null +++ b/cjdns-full-installer.sh @@ -0,0 +1,22 @@ +#!/bin/sh +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +source "$HOME/.cargo/env" +git clone https://github.com/cjdelisle/cjdns +cd cjdns +./do +if [ $? -ne 0 ] +then + echo "Failed to compile cjdns" + exit 1 +fi +cd .. +sudo cp cjdns/cjdroute /usr/bin/ +sudo cp cjdns/target/release/makekeys /usr/bin/ +sudo cp cjdns/target/release/mkpasswd /usr/bin/ +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/ +sudo cp cjdns/contrib/systemd/cjdns.service /etc/systemd/system/ +sudo cp cjdns/contrib/systemd/cjdns-resume.service /etc/systemd/system +sudo systemctl enable --now cjdns.service |