summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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