|
@@ -117,18 +117,6 @@ ynh_system_user_create --username=$app
|
|
|
#=================================================
|
|
|
ynh_script_progression --message="Configuring hotspot..."
|
|
|
|
|
|
-if [[ ! -v ip6_net ]]; then # if ip6_net not set
|
|
|
- ip6_net=""
|
|
|
-
|
|
|
- if [[ -e /tmp/.ynh-vpnclient-started ]]; then
|
|
|
- vpnclient_ip6_net=$(ynh_app_setting_get vpnclient ip6_net 2>&1)
|
|
|
-
|
|
|
- if [[ $vpnclient_ip6_net =~ :: ]]; then
|
|
|
- ip6_net=${vpnclient_ip6_net}
|
|
|
- fi
|
|
|
- fi
|
|
|
-fi
|
|
|
-
|
|
|
hot_reload_usb_wifi_cards
|
|
|
wifi_device=$(iw_devices | awk -F\| '{ print $1 }')
|
|
|
|
|
@@ -165,6 +153,14 @@ install -b -o root -g root -m 0644 ../conf/dnsmasq_dhcpdv4.conf.tpl /etc/dnsmasq
|
|
|
# Copy init script
|
|
|
install -o root -g root -m 0755 ../conf/$service_name /usr/local/bin/
|
|
|
|
|
|
+# Copy openvpn scripts
|
|
|
+mkdir -pm 0755 /etc/openvpn/scripts
|
|
|
+mkdir -pm 0755 /etc/openvpn/scripts/route-up.d
|
|
|
+mkdir -pm 0755 /etc/openvpn/scripts/route-down.d
|
|
|
+install -o root -g root -m 0755 ../conf/openvpn_90-hotspot /etc/openvpn/scripts/route-up.d/90-hotspot
|
|
|
+install -o root -g root -m 0755 ../conf/openvpn_90-hotspot /etc/openvpn/scripts/route-down.d/90-hotspot
|
|
|
+
|
|
|
+
|
|
|
#=================================================
|
|
|
# CONFIGURE HOSTAPD
|
|
|
#=================================================
|