Skip to content
Snippets Groups Projects
Commit c3e424cc authored by Patrick Uven's avatar Patrick Uven
Browse files

Invert regdone if

parent 0a590535
No related branches found
No related tags found
No related merge requests found
......@@ -9,12 +9,10 @@ pubkey=$(/etc/init.d/fastd show_key mesh_vpn)
regdone=$(uci get fastdreg.ffol.regdone)
if [ $regdone ]; then
reg=$(wget -T15 "$keysrv/reg.php?name=$hostname&key=$pubkey" -O -)
if [ "$reg" == "regdone" ]; then
uci set fastdreg.ffol.regdone=1
if [ ! $regdone ]; then
reg=$(wget -T15 "$keysrv/reg.php?name=$hostname&key=$pubkey" -O -)
if [ "$reg" == "regdone" ]; then
uci set fastdreg.ffol.regdone=1
uci commit
fi
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment