#Added by slkbuild 0.8.3
dotnew() {
        NEW="${1}.new"
        OLD="$1"
        if [ ! -e $OLD ]; then
                mv $NEW $OLD
        elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
                rm $NEW
        fi
}
dotnew etc/ppp/peers/barry-att_cingular
dotnew etc/ppp/peers/barry-chinamobile
dotnew etc/ppp/peers/barry-kpn
dotnew etc/ppp/peers/barry-o2ireland
dotnew etc/ppp/peers/barry-orange-spain
dotnew etc/ppp/peers/barry-rogers
dotnew etc/ppp/peers/barry-sprint
dotnew etc/ppp/peers/barry-telus
dotnew etc/ppp/peers/barry-tmobileus
dotnew etc/ppp/peers/barry-verizon
dotnew etc/chatscripts/barry-att_cingular.chat
dotnew etc/chatscripts/barry-chinamobile.chat
dotnew etc/chatscripts/barry-kpn.chat
dotnew etc/chatscripts/barry-o2ireland.chat
dotnew etc/chatscripts/barry-orange-spain.chat
dotnew etc/chatscripts/barry-rogers.chat
dotnew etc/chatscripts/barry-sprint.chat
dotnew etc/chatscripts/barry-telus.chat
dotnew etc/chatscripts/barry-tmobileus.chat
dotnew etc/chatscripts/barry-verizon.chat
doinst() {
	if [ -x usr/bin/update-desktop-database ]; then
	  usr/bin/update-desktop-database -q
	fi
	
	if [ -x usr/bin/gtk-update-icon-cache ]; then
	  usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor
	fi

	if [ "$(lsmod | grep "^berry_charge ")" ]; then
	  modprobe -r berry_charge
	fi

	udevadm control --reload-rules > /dev/null 2>&1
	udevadm trigger --action=change > /dev/null 2>&1
}
doinst
( cd usr/lib ; rm -rf libbarry.so.17 )
( cd usr/lib ; ln -sf libbarry.so.17.0.0 libbarry.so.17 )
( cd usr/lib ; rm -rf libbarry.so )
( cd usr/lib ; ln -sf libbarry.so.17.0.0 libbarry.so )
( cd usr/lib ; rm -rf libbarrydp.so.17 )
( cd usr/lib ; ln -sf libbarrydp.so.17.0.0 libbarrydp.so.17 )
( cd usr/lib ; rm -rf libbarrydp.so )
( cd usr/lib ; ln -sf libbarrydp.so.17.0.0 libbarrydp.so )
( cd usr/lib ; rm -rf libbarryjdwp.so.17 )
( cd usr/lib ; ln -sf libbarryjdwp.so.17.0.0 libbarryjdwp.so.17 )
( cd usr/lib ; rm -rf libbarryjdwp.so )
( cd usr/lib ; ln -sf libbarryjdwp.so.17.0.0 libbarryjdwp.so )
( cd usr/lib ; rm -rf libbarrysync.so.17 )
( cd usr/lib ; ln -sf libbarrysync.so.17.0.0 libbarrysync.so.17 )
( cd usr/lib ; rm -rf libbarrysync.so )
( cd usr/lib ; ln -sf libbarrysync.so.17.0.0 libbarrysync.so )
( cd usr/lib ; rm -rf libbarrybackup.so.17 )
( cd usr/lib ; ln -sf libbarrybackup.so.17.0.0 libbarrybackup.so.17 )
( cd usr/lib ; rm -rf libbarrybackup.so )
( cd usr/lib ; ln -sf libbarrybackup.so.17.0.0 libbarrybackup.so )
