#!/bin/sh # # Copyright (C) 2017 devolo AG # [ -f /etc/customization.sh ] && . /etc/customization.sh . /lib/functions.sh . /lib/delos-functions.sh check_guest_wifi_set() { local config="$1" config_get_bool dvl_guest "$config" dvl_guest 0 [ "$dvl_guest" == "1" ] && exit 0 } board= if [ -e /lib/ar71xx.sh ]; then . /lib/ar71xx.sh board=$(ar71xx_board_name) elif [ -e /lib/ipq806x.sh ];then . /lib/ipq806x.sh board=$(ipq806x_board_name) fi # Check if guest wifi already set config_load wireless config_foreach check_guest_wifi_set wifi-iface SSID=$(dvl_make_default_ssid guest) DPWD=$(uci_get_state delos-private baptization DlanSecurityID) KEY=${DPWD//-} add_guest_wifi () { uci add } WIFI0=$(cat <>/etc/config/wireless <>/etc/config/wireless <