#!/bin/sh
DST=${RPM_INSTALL_PREFIX}

mkdir -p ${DST}/plug/protocol/
touch ${DST}/plug/conflist.inf

mkdir -p ${DST}/etc/
touch ${DST}/etc/entrylist.conf

if [[ -z `grep -rn 'quic.inf' ${DST}/plug/conflist.inf` ]];then
	sed -i '/\[protocol\]/a\./plug/protocol/quic/quic.inf' ${DST}/plug/conflist.inf
fi
if [[ -z `grep -rn 'QUIC' ${DST}/etc/entrylist.conf` ]];then
	echo "QUIC" >>  ${DST}/etc/entrylist.conf
fi
