ok, I ran install_init.sh and I now see that I did'nt need it - cause hentges roms has it already :-/
do I still need to run copy_files.sh <location> ?
#!/bin/sh
if [ $# -eq 0 ]
then
echo "Usage: $0 "
exit
fi
NEWROOT=$1
# if you want to link the home folder comment in the next line this will
# speed up writes to your home folder because it is on internal memory,
# however you are now dependent on internal memory. This was more of an
# issue for pre-3.5.1 releases as 3.5.1 runs much faster.
#HOMELINK="yes"
# add folders here that you want to create on the new file system instead of copying
CREATELIST="/var /proc"
# you shouldn't need to modify below here
for FOLDER in /*
do
# these are the exceptions
if [ "$FOLDER" = "/dev" ]
then
# for /dev we need to move the ramdisk out of the way and copy the files in the actual folder
echo "Copying $FOLDER"
mkdir /dev.tmp
mount -o move /dev /dev.tmp
cp -a /dev /$NEWROOT/
mount -o move /dev.tmp /dev
rmdir /dev.tmp
elif [ "$FOLDER" = "/home" ]
then
# /home can be either linked or copied
if [ "$HOMELINK" = "yes" ]
then
echo "Linking $FOLDER"
ln -s /media/realroot/"$FOLDER" /$NEWROOT/"$FOLDER"
else
echo "Copying $FOLDER"
cp -a "$FOLDER" /$NEWROOT/
fi
elif [ "$FOLDER" = "/media" ]
then
# the media folder is a special case because we want to create the folder and
# its immediate subfolders, but not more than that
echo "Creating $FOLDER"
mkdir /$NEWROOT/"$FOLDER"
for MFOLDER in "$FOLDER"/*
do
echo "Creating $MFOLDER"
mkdir /$NEWROOT/"$MFOLDER"
done
elif [ "$FOLDER" = "/mnt" ]
then
# we create the /mnt folder, test for links, copy them, and then create folders
echo "Creating $FOLDER"
mkdir /$NEWROOT/"$FOLDER"
for MFOLDER in "$FOLDER"/*
do
# copy the links
if [ -L "$MFOLDER" ]
then
echo "Copying $MFOLDER"
cp -a "$MFOLDER" /"$NEWROOT"/"$FOLDER"
else
echo "Creating $MFOLDER"
mkdir /$NEWROOT/"$MFOLDER"
fi
done
else
# check to see if this folder is in our create list
for CFOLDER in $CREATELIST
do
if [ "$CFOLDER" = "$FOLDER" ]
then
echo "Creating $FOLDER"
mkdir /$NEWROOT/"$FOLDER"
fi
done
# if it has not been created (i.e. it is not
# in the create list) than copy it
if [ ! -e "/$NEWROOT/$FOLDER" ]
then
echo "Copying $FOLDER"
cp -a "$FOLDER" /$NEWROOT/
fi
fi
done
if [ -f /$NEWROOT/sbin/init.org ]
then
echo "Cleaning up"
mv /$NEWROOT/sbin/init.org /$NEWROOT/sbin/init
rm /$NEWROOT/etc/rboot.conf
fi