#!/bin/sh

#echo "Flash update"
cd /lib

if [ -e chan_sip.so ]; then
	rm -f chan_sip.so
fi
if [ -e app_dial.so ]; then
	rm -f app_dial.so
fi

if [ -e chan_cnxnt.so ]; then
	rm -f chan_cnxnt.so
fi

if [ -e libncurses.so.5.5  ]; then
	rm -f libncurses.so.5.5
fi

if [ -e res_adsi.so ]; then
	rm -f res_adsi.so
fi

if [ -e app_intercom.so ]; then
	rm -f app_intercom.so
fi

if [ -e app_read.so ]; then
	rm -f app_read.so
fi

if [ -e app_chanisavail.so ]; then
	rm -f app_chanisavail.so
fi

if [ -e pbx_config.so ]; then
	rm -f pbx_config.so
fi

if [ -e app_sendtext.so ]; then
	rm -f app_sendtext.so
fi

if [ -e res_indications.so ]; then
	rm -f res_indications.so
fi

if [ -e app_waitforring.so ]; then
	rm -f app_waitforring.so
fi
if [ -e app_senddtmf.so ]; then
	rm -f app_senddtmf.so
fi

if [ -e pbx_wilcalu.so ]; then
	rm -f pbx_wilcalu.so
fi

if [ -e res_monitor.so ]; then
	rm -f res_monitor.so
fi

if [ -e res_features.so ]; then
	rm -f res_features.so
fi

if [ -e libresolv-0.9.28.so ]; then
	rm -f libresolv-0.9.28.so
fi

if [ -e libresolv.so ]; then
	rm -f libresolv.so
fi

if [ -e libresolv.so.0 ]; then
	rm -f libresolv.so.0
fi

#rm -f rm chan_sip.so app_dial.so chan_cnxnt.so libncurses.so.5.5 res_adsi.so app_intercom.so app_read.so app_chanisavail.so pbx_config.so app_sendtext.so res_indications.so app_waitforring.so app_senddtmf.so pbx_wilcalu.so res_monitor.so res_features.so

#rm -f libresolv-0.9.28.so libresolv.so libresolv.so.0 

cd /
