echo 'executing preaction now'

cat /proc/meminfo

#useless after module loading
rm /sbin/portmap
rm /usr/local/bin/DM
rm /etc/init.d/load_modules
rm /bin/bootlogo*
rm /bin/sata_detect

#useless after starting application
rm /etc/init.d/load_ap
rm /bin/file_transfer

#useless after application stand by
rm /bin/gen-key*
rm /bin/gpg
rm /bin/chklink
rm /sbin/dhcpcd
rm /sbin/ntpdate
rm /usr/sbin/adsl*
rm /usr/sbin/ddns_script
rm /usr/sbin/mgetty
rm /usr/sbin/upnpd

#used for ppoe & 3G
rm /usr/sbin/adsl*
rm /usr/sbin/chat
rm /usr/sbin/ppp*
rm /usr/sbin/usb_modeswitch

#used for upgrade only
rm /bin/wget

#used for HDD repair/format only
rm /sbin/e2fsck
rm /sbin/parted
rm /sbin/mke2fs
rm /sbin/tune2fs
rm /sbin/dosfsck
rm /sbin/mkdosfs

#used for CD/DVD export only
rm /usr/bin/cdrecord
rm /usr/bin/mkisofs
rm /usr/bin/growisofs
rm /usr/bin/dvd+rw-format
rm /usr/bin/eject

#tool usage only
rm /bin/iaccess
rm /bin/iic
rm /bin/sw_dbg
rm /sbin/dosfslabel
rm /usr/sbin/smartctl
rm /usr/sbin/flash_eraseall
rm /usr/local/bin/cabextract

cat /proc/meminfo
