|
@@ -117,14 +117,15 @@ ynh_system_user_create --username=$app
|
|
|
#=================================================
|
|
|
ynh_script_progression --message="Configuring hotspot..."
|
|
|
|
|
|
+ip6_net=""
|
|
|
+ip6_dns=""
|
|
|
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}
|
|
|
+ ip6_dns="${ip6_net}1"
|
|
|
fi
|
|
|
fi
|
|
|
fi
|
|
@@ -138,7 +139,7 @@ ynh_app_setting_set --app=$app --key=wifi_passphrase --value="${wifi_passphrase}
|
|
|
ynh_app_setting_set --app=$app --key=wifi_device --value="${wifi_device}"
|
|
|
ynh_app_setting_set --app=$app --key=wifi_channel --value=6
|
|
|
ynh_app_setting_set --app=$app --key=ip6_firewall --value=1
|
|
|
-ynh_app_setting_set --app=$app --key=ip6_dns --value=""
|
|
|
+ynh_app_setting_set --app=$app --key=ip6_dns --value="${ip6_dns}"
|
|
|
ynh_app_setting_set --app=$app --key=ip6_net --value="${ip6_net}"
|
|
|
ynh_app_setting_set --app=$app --key=ip4_dns --value="10.0.242.1"
|
|
|
ynh_app_setting_set --app=$app --key=ip4_nat_prefix --value=10.0.242
|