[examples] add more example scripts

This commit is contained in:
Fabio Erculiani
2010-05-09 22:27:19 +02:00
parent 4158e52ba3
commit 41f4f77abe
5 changed files with 58 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
echo "REMASTER INNER CHROOT SCRIPT"
+33
View File
@@ -0,0 +1,33 @@
#!/bin/bash
echo "REMASTER INNER CHROOT SCRIPT AFTER"
# touch /etc/asound.state
touch /etc/asound.state
rm -f "/usr/share/applications/vmware-user.desktop"
rm -f "/etc/skel/Desktop/WorldOfGooDemo-world-of-goo-demo.desktop"
echo -5 | etc-update
mount -t proc proc /proc
eselect opengl set xorg-x11
env-update
/lib/rc/bin/rc-depend -u
equo database vacuum
# Generate openrc cache
/etc/init.d/savecache start
/etc/init.d/savecache zap
equo deptest --pretend
emaint --fix world
ldconfig
umount /proc
# EXPERIMENTAL, clean icon cache files
for file in `find /usr/share/icons -name "icon-theme.cache"`; do
rm $file
done
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
PKGS_DIR="/sabayon/remaster/pkgs"
CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/packages"
echo "Umounting packages over"
umount "${CHROOT_DIR}/dev"
umount "${CHROOT_PKGS_DIR}" || exit 1
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
PKGS_DIR="/sabayon/remaster/pkgs"
CHROOT_PKGS_DIR="${CHROOT_DIR}/var/lib/entropy/packages"
[[ ! -d "${PKGS_DIR}" ]] && mkdir -p "${PKGS_DIR}"
[[ ! -d "${CHROOT_PKGS_DIR}" ]] && mkdir -p "${CHROOT_PKGS_DIR}"
echo "Mounting packages over"
mount --bind "${PKGS_DIR}" "${CHROOT_PKGS_DIR}" || exit 1
mount --bind "/dev" "${CHROOT_DIR}/dev"
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
# Setup Gaming Edition string in ISOLINUX stuff
sed -i 's/5.1/5.1 Gaming/g' "${CDROOT_DIR}/isolinux/isolinux.cfg"
sed -i 's/5.1/5.1 Gaming/g' "${CDROOT_DIR}/isolinux/isolinux.txt"