<commit_before>#!/bin/sh
# Setup_splash, takes 1 argument: 1=net

. /etc/functions.sh
. $dir/functions.sh

net=$1

handle_splash() {
	config_get network "$1" network
	if [ "$network" == "${netrenamed}dhcp" ]; then
		if [ "$cleanup" == 1 ]; then
			section_cleanup luci_splash.$1
		else
			if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
				section_rename luci_splash $1 ${netrenamed}dhcp
			fi
		fi
	fi
}
config_load luci_splash
config_foreach handle_splash iface

uci batch << EOF
set luci_splash.${netrenamed}dhcp="iface"
set luci_splash.${netrenamed}dhcp.network="${net}dhcp"
set luci_splash.${netrenamed}dhcp.zone="freifunk"
EOF

echo "    network: ${netrenamed}dhcp"

uci commit<commit_msg>contrib/meshwizard: Fix renamed interface name for splash, too<commit_after>#!/bin/sh
# Setup_splash, takes 1 argument: 1=net

. /etc/functions.sh
. $dir/functions.sh

net=$1

handle_splash() {
	config_get network "$1" network
	if [ "$network" == "${netrenamed}dhcp" ]; then
		if [ "$cleanup" == 1 ]; then
			section_cleanup luci_splash.$1
		else
			if [ -z "${1/cfg[0-9a-fA-F]*/}" ]; then
				section_rename luci_splash $1 ${netrenamed}dhcp
			fi
		fi
	fi
}
config_load luci_splash
config_foreach handle_splash iface

uci batch << EOF
set luci_splash.${netrenamed}dhcp="iface"
set luci_splash.${netrenamed}dhcp.network="${netrenamed}dhcp"
set luci_splash.${netrenamed}dhcp.zone="freifunk"
EOF

echo "    network: ${netrenamed}dhcp"

uci commit
{'fraction_non_alphanumeric': 0.15013966480446927, 'fraction_numerical': 0.013966480446927373, 'mean_word_length': 4.664031620553359, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5938454', 'n_tokens_mistral': 605, 'n_tokens_neox': 575, 'n_words': 118}