mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
| #!/bin/bash
 | |
| #
 | |
| # Please check BR2_ROOTFS_POST_BUILD_SCRIPT option in config
 | |
| #
 | |
| 
 | |
| echo 'Note: Deleting unused files from the image..'
 | |
| #
 | |
| rm -f ${TARGET_DIR}/etc/init.d/S01syslogd
 | |
| rm -f ${TARGET_DIR}/etc/init.d/S10modules
 | |
| rm -f ${TARGET_DIR}/etc/init.d/S20urandom
 | |
| rm -f ${TARGET_DIR}/etc/init.d/S21rngd
 | |
| rm -f ${TARGET_DIR}/etc/init.d/S40mdev
 | |
| rm -f ${TARGET_DIR}/etc/init.d/S49ntpd
 | |
| rm -f ${TARGET_DIR}/etc/init.d/S50dropbear
 | |
| rm -f ${TARGET_DIR}/etc/init.d/S50snmpd
 | |
| #
 | |
| rm -rf ${TARGET_DIR}/etc/ssl
 | |
| #
 | |
| rm -f ${TARGET_DIR}/lib/libatomic*
 | |
| rm -f ${TARGET_DIR}/lib/libgcc*
 | |
| #
 | |
| rm -rf ${TARGET_DIR}/lib/modules
 | |
| rm -rf ${TARGET_DIR}/lib/mdev
 | |
| #
 | |
| rm -f ${TARGET_DIR}/sbin/ldconfig
 | |
| #
 | |
| rm -f ${TARGET_DIR}/usr/bin/getconf
 | |
| rm -f ${TARGET_DIR}/usr/bin/ipcinfo
 | |
| rm -f ${TARGET_DIR}/usr/bin/ldd
 | |
| #
 | |
| rm -f ${TARGET_DIR}/usr/lib/libjson-c.so.2
 | |
| #
 | |
| rm -f ${TARGET_DIR}/usr/sbin/firstboot
 | |
| rm -f ${TARGET_DIR}/usr/sbin/pqtools
 | |
| rm -f ${TARGET_DIR}/usr/sbin/sysupgrade
 | |
| rm -f ${TARGET_DIR}/usr/sbin/telegram_bot
 | |
| #
 | |
| # mkdir -p ${TARGET_DIR}/dev ; mknod ${TARGET_DIR}/dev/null c 3 2; chmod 666 ${TARGET_DIR}/dev/null
 | |
| #
 |