mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
Unused vpnclient setting ...
This commit is contained in:
parent
38f61c775b
commit
97a1c737ea
2 changed files with 0 additions and 7 deletions
|
@ -364,12 +364,6 @@ case "$1" in
|
||||||
echo "[hotspot] Starting..."
|
echo "[hotspot] Starting..."
|
||||||
touch /tmp/.ynh-hotspot-started
|
touch /tmp/.ynh-hotspot-started
|
||||||
|
|
||||||
if [ "${new_internet_device}" == tun0 ]; then
|
|
||||||
ynh_setting_set hotspot vpnclient yes
|
|
||||||
else
|
|
||||||
ynh_setting_set hotspot vpnclient no
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check old state of the ipv4 NAT settings
|
# Check old state of the ipv4 NAT settings
|
||||||
if [ ! -z "${old_internet_device}" -a "${new_internet_device}" != "${old_internet_device}" ]\
|
if [ ! -z "${old_internet_device}" -a "${new_internet_device}" != "${old_internet_device}" ]\
|
||||||
&& is_nat_set "${old_internet_device}"; then
|
&& is_nat_set "${old_internet_device}"; then
|
||||||
|
|
|
@ -143,7 +143,6 @@ ynh_app_setting_set --app=$app --key=ip6_firewall --value=1
|
||||||
ynh_app_setting_set --app=$app --key=ip6_net --value="${ip6_net}"
|
ynh_app_setting_set --app=$app --key=ip6_net --value="${ip6_net}"
|
||||||
ynh_app_setting_set --app=$app --key=dns --value="2001:913::8,2001:910:800::12,80.67.188.188,80.67.169.12"
|
ynh_app_setting_set --app=$app --key=dns --value="2001:913::8,2001:910:800::12,80.67.188.188,80.67.169.12"
|
||||||
ynh_app_setting_set --app=$app --key=ip4_nat_prefix --value=10.0.242
|
ynh_app_setting_set --app=$app --key=ip4_nat_prefix --value=10.0.242
|
||||||
ynh_app_setting_set --app=$app --key=vpnclient --value=no
|
|
||||||
|
|
||||||
if [[ -z $wifi_device ]]; then
|
if [[ -z $wifi_device ]]; then
|
||||||
ynh_app_setting_set --app=$app --key=service_enabled --value=0
|
ynh_app_setting_set --app=$app --key=service_enabled --value=0
|
||||||
|
|
Loading…
Add table
Reference in a new issue