[Galaxy S I9000 Android Development] :
Hey Galnet,

im using your 3.2 + Neo 10.

I wrote a script to customize /system to my own needs!

This used to work all the time, but since i flashed 3.2 it just causes Bootloops after rebooting and loads of FCs...

Would you please take a look on it and tell me if there´s anything causing that bootloops ?!

#!/system/bin/sh

# customization_v1.3
#
# Script zur Anpassung des MIUI-Systems
# nach eigenen Bedürfnissen! Einzelne Schritte
# sind kommentiert!

clear
mount -o rw,remount /system
dir=/sdcard/external_sd/customization
vers=customization_v1.3
echo "###########################################"
echo "# #"
echo "# - Customization v1.3 - #"
echo "# #"
echo "###########################################"
echo ""

# ########
# Installation der Bash-Shell (ersetzt die Standard-Shell)
# ########

echo "Install Bash-Shell..."
if [ -f /system/bin/bash ];
then
echo " -Bash-Shell is already installed!"
else
cp $dir/bash/bash /system/bin/
mv /system/bin/sh /system/bin/sh.bkp
chmod 0755 bash
ln -s /system/bin/bash /system/bin/sh
echo " -Bash-Shell installed succesfully!"
fi

rm /sdcard/bash_profile
cp $dir/bash/bash_profile /sdcard/bash_profile
echo " -Installed/Reinstalled bash_profile"

echo ""

# ########
# Restore der Ringtones/Notifications
# ########

echo "Copy ringtones to System-Folder..."
if [ -f /system/media/audio/ringtones/Marimba.ogg ];
then
echo " -Ringtones are already available!"
else
cp -f $dir/audio/* /system/media/audio/ringtones/
cp -f $dir/audio/* /system/media/audio/alarms/
cp -f $dir/audio/* /system/media/audio/notifications/
echo " -Ringtones succesfully copied!"
chmod a-xrw /system/media/audio/notifications/*
chmod u+rw /system/media/audio/notifications/*
chmod go+r /system/media/audio/notifications/*
chmod a-xrw /system/media/audio/ringtones/*
chmod u+rw /system/media/audio/ringtones/*
chmod go+r /system/media/audio/ringtones/*
chmod a-xrw /system/media/audio/alarms/*
chmod u+rw /system/media/audio/alarms/*
chmod go+r /system/media/audio/alarms/*
fi

echo ""

# ########
# Anlegen Link sd-ext
# ########

echo "Create Link to ext-SD..."
rm /ext-sd > /dev/null
ln -s /sdcard/external_sd /ext-sd
echo " -Link succesfully created!"

echo ""

# ########
# Startscript erstellen!
# ########

echo "Create bootscript in /etc/init.d/..."
if [ -f S36seb_boot ];
then
echo " -Script already exists!"
else
echo "#!/system/bin/sh" > /etc/init.d/S36seb_boot
echo "" >> /etc/init.d/S36seb_boot
echo "ln -s /sdcard/external_sd /ext-sd" >> /etc/init.d/S36seb_boot
echo "rmdir /sd-ext" >> /etc/init.d/S36seb_boot
chmod 755 /etc/init.d/S36seb_boot
echo " -Script succesfully created!"
fi

echo ""

# ########
# Installation nMap
# ########

echo "Install nMap..."
if [ -f /system/bin/nmap ];
then
echo " -nMap system-files already exist!"
else
cp $dir/nmap/foo /system/bin/nmap
chmod 755 /system/bin/nmap
echo " -nMap system-files succesfully installed!"
fi

if [ -f /data/bin/nmap ];
then
echo " -nMap data-files already exist!"
else
mkdir /data/bin
cp $dir/nmap/nmap* /data/bin/
chmod 755 /data/bin/nmap
echo " -nMap data-files succesfully installed!"
fi

echo ""
echo ""
echo "Wipe Dalvik-Cache? (y/n)"
read wipe
case $wipe in
y)
rm -R /data/dalvik-cache/*
echo "-Dalvik-Cache wiped!"
;;
*)
echo "-No Dalvik-Cache wipe!"
;;
esac
echo ""
echo "Reboot System?"
read reboot
case $reboot in
y)
boot=1
echo "-System is going to reboot!"
;;
*)
boot=0
echo "-No reboot!"
;;
esac
echo ""
echo ""
echo "-- $vers succesfully done! --"

if [ $boot = "1" ];
then
sleep 5
reboot
fi

# -
# -
# -
# Changelog
#
# ##### v1.2
# -If-Abfragen eingefügt um überschreiben vorhandener Mods zu vermeiden!
# -Changelog und Versionsvariablen hinzugefügt!
# -Email-Restore entfernt!
# ##### v1.3
# -Dalvik-Cache Wipe und Reboot Abfrage eingefügt!
# -Änderung von kleinen Schreibfehlern in echos!