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
|
||||
|
||||
@@ -12,17 +12,17 @@ ACCEPT_KEYWORDS="arm ~arm"
|
||||
# CXXFLAGS="${CFLAGS}"
|
||||
# CPPFLAGS="${CFLAGS}"
|
||||
|
||||
USE="${USE} 7zip apache2 arm authdaemond authfile bash-completion clamav \
|
||||
USE="${USE} 7zip apache2 armv5 authdaemond authfile bash-completion clamav \
|
||||
clamd maildir php posix postfix pam glibc-omitfp \
|
||||
procmail samba sasl slang softquota symlink tokenizer usb \
|
||||
-oss -branding -esd xine mp3 gnutls cups ppds \
|
||||
foomatic-db alsa hal gimpprint freetype X unicode rdesktop pda \
|
||||
zeroconf xinerama java sqlite\
|
||||
sms quotas dvb xprint theora ogg a52 matroska v4l xvid network \
|
||||
fame svg ffmpeg 7Zip css audiofile musicbrainz scanner \
|
||||
fame svg ffmpeg css audiofile musicbrainz scanner \
|
||||
musepack new-login kerberos dbus openexr aac fat hfs jfs xfs \
|
||||
ntfs reiserfs cjk cdda dts imap cairo sysfs xpm nptl nptlonly \
|
||||
gs lzo mjpeg mmx speex slp fftw xvmc v4l2 cpudetection extramodules \
|
||||
gs lzo mjpeg speex slp fftw xvmc v4l2 cpudetection extramodules \
|
||||
mail -apm ipod flac avahi stream live tiff usb x264 dv lame mp3rtp \
|
||||
udev cdr dvi libnotify bzip2 aalib mng cddb -beagle -gnome -evo mono \
|
||||
-eds png gif -qt4 inotify graphite \
|
||||
|
||||
@@ -22,5 +22,4 @@
|
||||
*app-admin/showconsole
|
||||
*sys-libs/timezone-data
|
||||
*net-misc/dhcpcd
|
||||
*sys-apps/micro_evtd
|
||||
*app-misc/linux-logo
|
||||
*sys-apps/micro_evtd
|
||||
Reference in New Issue
Block a user