#!/bin/sh

#echo "$0, $1"  >> /var/postinst

case "$1" in
  update)
    ;;
  install)
    ;;
  configure)
	#ln -sf /home/perl/bin/perl /usr/bin/perl
	if [ -n "`cat /etc/profile|grep PERL5LIB`" ]; then
		sed -i '/export PERL5LIB=\/home\/perl\/lib\/perl5\/5.10.1/d' /etc/profile
		sed -i '/export LD_PRELOAD=\/lib\/libgcc_s.so.1//d' /etc/profile
		sed -i 's/\/usr\/lib:\/home\/perl\/lib\/perl5\/5.10.1\/armv5teb-linux\/CORE//' /etc/profile
		sed -i 's/:\/home\/perl\/usr\/bin//' /etc/profile
	fi
    ;;
  remove)
    ;;
  *)
    ;;
esac

exit 0
