summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorroot <root@freyanet.lan>2024-08-23 15:51:21 +0000
committerroot <root@freyanet.lan>2024-08-23 15:51:21 +0000
commit7c9a2ca6af162a44df480486d77c1ee761fe0828 (patch)
treeb9ab7c072d8ef345e8a73a1437cc74f59b344f33 /Makefile
parentforgot license (diff)
downloadfreyanet-7c9a2ca6af162a44df480486d77c1ee761fe0828.tar.gz
freyanet-7c9a2ca6af162a44df480486d77c1ee761fe0828.tar.bz2
freyanet-7c9a2ca6af162a44df480486d77c1ee761fe0828.zip
add openwrt
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 38ac300..1582c1e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
-.PHONY: install
+.PHONY: install alpine openwrt
install:
+ mkdir -p /usr/local/bin
mkdir -p /var/lib/inet2
cp ./bin/* /usr/local/bin
cp ./lib/* /var/lib/inet2
@@ -9,3 +10,8 @@ alpine:
apk add --no-cache wireguard-tools bind-tools bird
cp ./deployments/openrc/inet2.initd /etc/init.d/inet2
rc-update add inet2
+
+openwrt:
+ opkg install wireguard-tools bind-tools bird2
+ cp ./deployments/initd/inet2.initd /etc/init.d/inet2
+ service inet2 enable