<commit_before>#!/bin/dash

defaultrouteno=$(ip route list table freifunk |grep default | wc -l)
#echo "I: defaultrouteno: $defaultrouteno"
if [ 0 -eq $defaultrouteno ];  then
	mullvadip=$(LANG=C ifconfig mullvad | head -n 2 |grep inet|tr " " "\n" | grep addr | cut -f2 -d:)
	if [ "x$mullvadip" != "x" ]; then
		echo ip route replace default via $mullvadip table freifunk
		echo "I: Mullvad IP: $mullvadip"
	else
		echo "E: could not determine mullvadip"
	fi
fi
<commit_msg>Also preparing for complete disappearance of mullvad<commit_after>#!/bin/dash

if ifconfig | grep -q mullvad; then
	#echo ok
	defaultrouteno=$(ip route list table freifunk |grep default | wc -l)
else
	/etc/init.d/openvpn restart
	defaultrouteno=0
fi
#echo "I: defaultrouteno: $defaultrouteno"
if [ 0 -eq $defaultrouteno ];  then
	mullvadip=$(LANG=C ifconfig mullvad | head -n 2 |grep inet|tr " " "\n" | grep addr | cut -f2 -d:)
	if [ "x$mullvadip" != "x" ]; then
		ip route replace default via $mullvadip table freifunk
		echo "I: Updated default route to mullvad IP: $mullvadip"
	else
		echo "E: could not determine mullvadip"
	fi
fi

{'fraction_non_alphanumeric': 0.12173128944995491, 'fraction_numerical': 0.0063119927862939585, 'mean_word_length': 4.162790697674419, 'pattern_counts': {'":': 0, '<': 3, '<?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': '790485', 'n_tokens_mistral': 471, 'n_tokens_neox': 433, 'n_words': 142}