#!/sbin/sh

# Replaces 'delete DATA:app' in update-script.
# Fixes issue caused when /data/app is apps2sd symlink.

chmod 777 /data/app
rm -f /data/app/wireless_tether_2_0_2.apk
rm -f /data/app/wireless_tether_2_0_6.apk

find_cmd=`find data -name app -type l -maxdepth 1`

if [ "$find_cmd" != "" ]
then
  chmod 777 /data/app
  rm -f /data/app
fi
