#!/bin/sh

add_engine_config() {
	if [ -z "${IPKG_INSTROOT}" ] && uci -q get "openssl.$1" >/dev/null; then
		[ "$(uci -q get "openssl.$1.builtin")" = 1 ] && return
		uci set "openssl.$1.builtin=1" && uci commit openssl
		return
	fi
}

add_engine_config devcrypto

