blob: 4ed774e19e051b394147e7911fca1cc432902e32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/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
cp -r cjdns/tools/lib ~/.arching-kaos/bin/
cp cjdns/tools/dumpLinks ~/.arching-kaos/bin/
sudo systemctl enable --now cjdns.service
|