#!/bin/sh
set -e
if uci show uhttpd 2>/dev/null | grep -q speedify
then uci delete uhttpd.speedify
fi
if uci get uhttpd.main.listen_http 2>/dev/null
then uci delete uhttpd.main.listen_http
fi
if uci get uhttpd.main.listen_https 2>/dev/null
then uci delete uhttpd.main.listen_https
fi
uci commit
