#!/bin/sh

echo 'http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories
apk add --update git bash mc python3 py3-pip wireless-tools sudo vim wpa_supplicant dnsmasq iptables util-linux curl openvpn
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
sysctl -p
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
/etc/init.d/iptables save
rc-update add iptables boot
rc-update add wpa_supplicant boot

pip install flask
git clone git@gitlab.com:plentystars/web-gui.git
cd web-gui

cp openrc /etc/init.d/openvpn-webgui
rc-update add openvpn-webgui default

