#!/bin/sh cd /boot ln -sf uImage-*.buffalo uImage.buffalo ln -sf initrd-*.buffalo initrd.buffalo # no search for .svn dir # as a subversiontree is used for /etc/portage & /var/lib/layman/go-genlink # so remove by hand rm -rf /.svn rm -rf /etc/.svn rm -rf /etc/conf.d/.svn rm -rf /etc/layman/.svn rm -rf /etc/profile.d/.svn rm -rf /var/.svn rm -rf /var/lib/.svn rm -rf /var/lib/layman/.svn rm -rf /usr/.svn rm -rf /usr/local/.svn rm -rf /usr/local/bin/.svn # qemu-arm don't work woth the newer coreutils rm -f /etc/portage/package.mask/coreutils emerge --sync # shrink the image by removing most of the /usr/portage dir # the only dirs that survive are licenses (not requred), profile (required), virtual (not required) rm -rf /usr/portage/*-* # chamge password for root user /usr/local/bin/changepassword root goLsProLive