From df4fc984934e074725ca9aa003cfc73be67dc756 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 31 Jul 2017 03:02:26 +0200 Subject: cli: import from contrib/examples/android Signed-off-by: Jason A. Donenfeld --- cli/install.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 cli/install.sh (limited to 'cli/install.sh') diff --git a/cli/install.sh b/cli/install.sh new file mode 100755 index 00000000..f619eb6c --- /dev/null +++ b/cli/install.sh @@ -0,0 +1,14 @@ +#!/bin/sh +mount -o rw,remount /system + +cp -v ./addonsd.sh /system/addon.d/40-wireguard.sh +if [ -f ./wg ]; then + cp -v ./wg /system/xbin/wg +else + echo "Warning: this directory does not contain wg. You may have forgotten to compile it yourself?" >&2 +fi +cp -v ./wg-quick.bash /system/xbin/wg-quick +chmod 755 /system/xbin/wg /system/xbin/wg-quick /system/addon.d/40-wireguard.sh +mkdir -pvm 700 /data/misc/wireguard + +mount -o ro,remount /system -- cgit v1.2.3