add dynamic motd generator
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@2634 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# link the kernel and initrd for the inital package
|
||||
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
|
||||
# subversiontrees are used for /etc/portage & /var/lib/layman/go-genlink
|
||||
# so remove manually
|
||||
rm -rf /.svn
|
||||
rm -rf /etc/.svn
|
||||
rm -rf /etc/conf.d/.svn
|
||||
@@ -17,13 +19,23 @@ rm -rf /usr/.svn
|
||||
rm -rf /usr/local/.svn
|
||||
rm -rf /usr/local/bin/.svn
|
||||
|
||||
# qemu-arm don't work woth the newer coreutils
|
||||
# qemu-arm don't work with newer coreutils
|
||||
# but the linkstation works with it
|
||||
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/*-*
|
||||
# clean all not needed packages
|
||||
emerge --depclean
|
||||
|
||||
# chamge password for root user
|
||||
# unmount the snapshot for creationg the initial portage dir in the final package
|
||||
umount /usr/portage
|
||||
|
||||
# shrink the image by only syncing the requred dirs into /usr/portage
|
||||
# the only dirs that survive are profiles (required), eclass (required), licenses (required)
|
||||
# we have to use the IP as the resolve.conf file is already gone
|
||||
# but a new one will be added in a later phase of catylast
|
||||
rsync -aPv rsync://83.164.133.198/gentoo-portage/profiles /usr/portage/
|
||||
rsync -aPv rsync://83.164.133.198/gentoo-portage/eclass /usr/portage/
|
||||
rsync -aPv rsync://83.164.133.198/gentoo-portage/licenses /usr/portage/
|
||||
|
||||
# change password for root user
|
||||
/usr/local/bin/changepassword root goLsProLive
|
||||
|
||||
Reference in New Issue
Block a user