#!/bin/bash

# Script zur Juxlala ANpassung des grml-live chroot (Version 05_oct_2008)


TARGET=/home/mayr/isowork/grml_chroot

rm -rf $TARGET/etc/skel/.idesktop/*.lnk
rm -rf $TARGET/etc/skel/.idesktop/icons/*.png
rm -rf $TARGET/usr/share/grml/*.jpg

cp -a --remove-destination /home/mayr/tree_gredler/newtree/home/grml/.[a-z]* $TARGET/etc/skel
cp -a --remove-destination /home/mayr/tree_gredler/newtree/usr/share/grml/* $TARGET/usr/share/grml
cp -a --remove-destination /home/mayr/tree_gredler/newtree/usr/local/share/* $TARGET/usr/local/share
cp -a --remove-destination /home/mayr/tree_gredler/newtree/usr/share/sounds/* $TARGET/usr/share/sounds
cp -a --remove-destination /home/mayr/tree_gredler/newtree/usr/share/juxlala $TARGET/usr/share
cp -a --remove-destination /home/mayr/tree_gredler/newtree/usr/share/games $TARGET/usr/share/

#Permissions
chown -R root.staff $TARGET/usr/local/share/juxlala
chown -R root.staff $TARGET/usr/share/games
chown root.root $TARGET/etc/skel/.*


