[Galaxy S Plus I9001 Android Development] broodplank1337:
thanks allot for those, will add the battery calibration script to the broodrom_scripts dir, current listing is:

├───broodrom_scripts
│ defragment_databases
│ factory_reset
│ fix_permissions
│ hard_reset
│ wipe_dalvik
│ zipalign_apps
│ auto_calibrate_battery

And also I will add the google error reporting as an option (enable/disable) thanks for this ^^

Not yet, but im coming closer to a test release.

edit: added more functions to the config file:

#!/system/bin/sh
# =================================================
# broodROM RC5 Configuration File
# created by broodplank(1337) @ XDA
# =================================================

# Initialize Virtuous OC Daemon
/system/xbin/virtuous_oc

#Mount Partitions:
mount -o remount rw /system
echo " ";
echo "Mounting...";

# =================================================
# Settings
#
# - Choose a CPU Profile or set a manual CPU configuration
# - Set I/O Scheduler
# - Enable/Disable Media Scanning
# - Enable/Disable Bootanimation
# - Enable/Disable Google Error Reporting
# - Set SDcard Read_ahead
#
# =================================================

# =================================================
# CPU Profiles:
# =================================================
#
# 1. >>> Battery Saving Profile <<<
# ( Performance: +- | Battery: ++ )
#
# 2. >>> Balanced Profile <<<
# ( Performance: + | Battery: + )
#
# 3. >>> Performance Profile <<<
# ( Performance: ++ | Battery: +- )
#
# Please choose your profile:
PROFILE="2" # Default is 2
#
# If you want to configure the CPU manually:
# enter "0" as profile
# Make sure you uncomment the lines in manual CPU Configuration
# If you want to use profiles again be sure to comment the lines again.
#
# =================================================

# =================================================
# Other settings
#
# >>> I/O Scheduler <<<
#
SCHEDULER="sio";
#
# >>> Media Scaninning <<<
#
MEDIA_SCANNING="enabled"; # enabled/disabled
#
# >>> Boot Animation <<<
#
BOOTANIMATION="enabled"; # enabled/disabled
#
# >>> Google Error Reporting <<<
#
ERRORREPORTING="disabled"; # enabled/disabled
#
# >>> Set SDCard Read Ahead <<<
SDCARDREADAHEAD="1024"; # 128/256/512/1024/2048
#
# =================================================

# =================================================
# Manual CPU Configuration
#
# >>> CPU Governor (Awake/Sleep) <<<
#
#	AWAKE_GOVERNOR="smartassV2";
#	SLEEP_GOVERNOR="powersave";
#
# >>> CPU Min/Max speed (Awake/Sleep) <<<<
#
#	MIN_SPEED_AWAKE="245760"; # 245MHz
#	MAX_SPEED_AWAKE="1401600"; # 1.4GHz
#
#	MIN_SPEED_SLEEP="122880"; # 122MHz
#	MAX_SPEED_SLEEP="245760"; # 245MHz
#
# =================================================

# =================================================
# CPU Profiles:
# =================================================

if [[ "$PROFILE" == "1" ]]
then
AWAKE_GOVERNOR="smartassV2";
SLEEP_GOVERNOR="powersave";
MIN_SPEED_AWAKE="245760";
MAX_SPEED_AWAKE="1209600";
MIN_SPEED_SLEEP="122880";
MAX_SPEED_SLEEP="245760";
echo " ";
echo "Setting profile to: Battery Saving Profile";
fi;

if [[ "$PROFILE" == "2" ]]
then
AWAKE_GOVERNOR="smartassV2";
SLEEP_GOVERNOR="smartassV2";
MIN_SPEED_AWAKE="245760";
MAX_SPEED_AWAKE="1401600";
MIN_SPEED_SLEEP="245760";
MAX_SPEED_SLEEP="245760";
echo " ";
echo "Setting profile to: Balanced Profile";
fi;

if [[ "$PROFILE" == "3" ]]
then
AWAKE_GOVERNOR="interactiveX";
SLEEP_GOVERNOR="smartassV2";
MIN_SPEED_AWAKE="245760";
MAX_SPEED_AWAKE="1612800";
MIN_SPEED_SLEEP="245760";
MAX_SPEED_SLEEP="368640";
echo " ";
echo "Setting profile to: Performance Profile";
fi;

# =================================================
# CPU Governors (for awake state)
# uncomment a line to activate gov.
# =================================================

#AWAKE_GOVERNOR="interactiveX";
#AWAKE_GOVERNOR="minmax";
#AWAKE_GOVERNOR="conservative";
#AWAKE_GOVERNOR="ondemand";
#AWAKE_GOVERNOR="userspace";
#AWAKE_GOVERNOR="smartassV2"; # Default
#AWAKE_GOVERNOR="performance"; # Best results in Antutu

echo " "
echo ">>> Awake CPU Governor and CPU Frequencies <<<";
echo $AWAKE_GOVERNOR > /system/etc/virtuous_oc/wake_governor;
echo "Setting Awake Governor to: $AWAKE_GOVERNOR"

# =================================================
# Set min cpu speed of awake state
# =================================================

#MIN_SPEED_AWAKE="122880"; # 122MHz
#MIN_SPEED_AWAKE="245760"; # 245MHz (Default)
#MIN_SPEED_AWAKE="368640"; # 368MHz

echo $MIN_SPEED_AWAKE > /system/etc/virtuous_oc/wake_min_freq;
echo "Setting min CPU freq (awake) to: $MIN_SPEED_AWAKE"

# =================================================
# Set max cpu speed of awake state
# =================================================

#MAX_SPEED_AWAKE="1401600"; # 1.4GHz (Default)
#MAX_SPEED_AWAKE="1516800"; # 1.5GHz
#MAX_SPEED_AWAKE="1612800"; # 1.6GHz
#MAX_SPEED_AWAKE="1708800"; # 1.7GHz
#MAX_SPEED_AWAKE="1804800"; # 1.8GHz

echo $MAX_SPEED_AWAKE > /system/etc/virtuous_oc/wake_max_freq;
echo "Setting max CPU freq (awake) to: $MAX_SPEED_AWAKE"
echo " "

# =================================================
# CPU Governors (for sleep state)
# uncomment a line to activate gov.
# =================================================

#SLEEP_GOVERNOR="conservative";
#SLEEP_GOVERNOR="ondemand";
#SLEEP_GOVERNOR="powersave"; # Default

echo ">>> Sleep Governor and CPU Frequencies <<<";
echo $SLEEP_GOVERNOR > /system/etc/virtuous_oc/sleep_governor;
echo "Setting sleep governor to: $SLEEP_GOVERNOR"

# =================================================
# Set min cpu speed of sleep state
# =================================================

#MIN_SPEED_SLEEP="122880"; # 122MHz (Default)
#MIN_SPEED_SLEEP="245760"; # 245MHz

echo $MIN_SPEED_AWAKE > /system/etc/virtuous_oc/sleep_min_freq;
echo "Setting min CPU freq (sleep) to: $MIN_SPEED_SLEEP"

# =================================================
# Set max cpu speed of sleep state
# =================================================

#MAX_SPEED_SLEEP="122880"; # 122MHz
#MAX_SPEED_SLEEP="245760"; # 245MHz (Default)
#MAX_SPEED_SLEEP="368640"; # 368MHz

echo $MIN_SPEED_AWAKE > /system/etc/virtuous_oc/sleep_max_freq;
echo "Setting max CPU freq (sleep) to: $MAX_SPEED_SLEEP"
echo " "

# =================================================
# Set I/O Scheduler
# =================================================

#SCHEDULER="noop";
#SCHEDULER="deadline";
#SCHEDULER="cfq";
#SCHEDULER="bfq";
#SCHEDULER="sio"; # Default
#SCHEDULER="vr"; # Best results in Antutu

echo ">>> I/O Scheduler <<<";
echo $SCHEDULER > /sys/block/mmcblk0/queue/scheduler
echo $SCHEDULER > /sys/block/mmcblk1/queue/scheduler
echo "Setting I/O scheduler to: $SCHEDULER"
echo " "

# =================================================
# Set Media Scanning
# =================================================

if [[ "$MEDIA_SCANNING" == "enabled" ]]
then pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver;
echo "Media scanning: Enabled";
else
pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver;
echo "Media scanning: Disabled";
fi;

# =================================================
# Set Boot Animation
# =================================================
echo " "

if [[ "$BOOTANIMATION" == "enabled" ]]
then setprop debug.sf.nobootanimation 0
echo "Boot Animation: Enabled";

else
setprop debug.sf.nobootanimation 1
echo "Boot Animation: Disabled";
fi;

# =================================================
# Google Error Reporting
# =================================================
echo " "

if [[ "$ERRORREPORTING" == "enabled" ]]
then
setprop profiler.force_disable_err_rpt 0
setprop profiler.force_disable_ulog 0
echo "Google Error Reporting: Enabled";
else
setprop profiler.force_disable_err_rpt 1
setprop profiler.force_disable_ulog 1
echo "Google Error Reporting: Disabled";
fi;

# =================================================
# Set SDCard Read Ahead
# =================================================
echo " "

echo $SDCARDREADAHEAD > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
echo "Setting SDcard Read Ahead to: $SDCARDREADAHEAD kb"

echo " "
echo "Done..."

This will become the config file with the most options you've ever seen for a custom ROMs config file (lame sentence) ^^

edit: added more!

#!/system/bin/sh
# =================================================
# broodROM RC5 Configuration File
# created by broodplank(1337) @ XDA
# =================================================

# Initialize Virtuous OC Daemon
/system/xbin/virtuous_oc

#Mount Partitions:
mount -o remount rw /system
echo " ";
echo "Mounting...";

# =================================================
# >>> Settings
#
# - Choose a CPU Profile or set a manual CPU configuration
# - Set I/O Scheduler
# - Set SDcard Read_ahead
# - Set Dalvik Heapsize
# - Enable/Disable Media Scanning
# - Enable/Disable Bootanimation
# - Enable/Disable Google Error Reporting
# - Enable/Disable Battery Tweak (dirty * centisecs)
# - Change LCD Density (May cause market/app errors)
#
# =================================================

# =================================================
# CPU Profiles:
# =================================================
#
# 1. >>> Battery Saving Profile <<<
# ( Performance: +- | Battery: ++ )
#
# 2. >>> Balanced Profile <<<
# ( Performance: + | Battery: + )
#
# 3. >>> Performance Profile <<<
# ( Performance: ++ | Battery: +- )
#
# Please choose your profile:
PROFILE="2" # Default is 2
#
# If you want to configure the CPU manually:
# enter "0" as profile
# Make sure you uncomment the lines in manual CPU Configuration
# If you want to use profiles again be sure to comment the lines again.
#
# =================================================

# =================================================
# Other settings
#
# >>> I/O Scheduler <<<
#
SCHEDULER="sio"; #noop/deadline/cfq/bfq/sio/vr
#
# >>> Set SDCard Read Ahead <<<
#
SDCARDREADAHEAD="1024"; # 128/256/512/1024/2048
#
# >>> Set Dalvik Heap Size <<<
#
DALVIKHEAPSIZE="64m"; # 32m/48m/64m/72m
#
# >>> Media Scaninning <<<
#
MEDIA_SCANNING="enabled"; # enabled/disabled
#
# >>> Boot Animation <<<
#
BOOTANIMATION="enabled"; # enabled/disabled
#
# >>> Google Error Reporting <<<
#
ERRORREPORTING="disabled"; # enabled/disabled
#
# >>> Battery Tweak <<<
#
BATTERYTWEAK="enabled"; # enabled/disabled
#
# >>> LCD Density (resolution) <<<
#
LCDDENSITY="240"; # 220/230/240/250/260
#
# =================================================

# =================================================
# Manual CPU Configuration
#
# >>> CPU Governor (Awake/Sleep) <<<
#
#	AWAKE_GOVERNOR="smartassV2";
#	SLEEP_GOVERNOR="powersave";
#
# >>> CPU Min/Max speed (Awake/Sleep) <<<<
#
#	MIN_SPEED_AWAKE="245760"; # 245MHz
#	MAX_SPEED_AWAKE="1401600"; # 1.4GHz
#
#	MIN_SPEED_SLEEP="122880"; # 122MHz
#	MAX_SPEED_SLEEP="245760"; # 245MHz
#
# =================================================

# =================================================
# CPU Profiles:
# =================================================

if [[ "$PROFILE" == "1" ]]
then
AWAKE_GOVERNOR="smartassV2";
SLEEP_GOVERNOR="powersave";
MIN_SPEED_AWAKE="245760";
MAX_SPEED_AWAKE="1209600";
MIN_SPEED_SLEEP="122880";
MAX_SPEED_SLEEP="245760";
echo " ";
echo "Setting profile to: Battery Saving Profile";
fi;

if [[ "$PROFILE" == "2" ]]
then
AWAKE_GOVERNOR="smartassV2";
SLEEP_GOVERNOR="smartassV2";
MIN_SPEED_AWAKE="245760";
MAX_SPEED_AWAKE="1401600";
MIN_SPEED_SLEEP="245760";
MAX_SPEED_SLEEP="245760";
echo " ";
echo "Setting profile to: Balanced Profile";
fi;

if [[ "$PROFILE" == "3" ]]
then
AWAKE_GOVERNOR="interactiveX";
SLEEP_GOVERNOR="smartassV2";
MIN_SPEED_AWAKE="245760";
MAX_SPEED_AWAKE="1612800";
MIN_SPEED_SLEEP="245760";
MAX_SPEED_SLEEP="368640";
echo " ";
echo "Setting profile to: Performance Profile";
fi;

# =================================================
# CPU Governors (for awake state)
# uncomment a line to activate gov.
# =================================================

#AWAKE_GOVERNOR="interactiveX";
#AWAKE_GOVERNOR="minmax";
#AWAKE_GOVERNOR="conservative";
#AWAKE_GOVERNOR="ondemand";
#AWAKE_GOVERNOR="userspace";
#AWAKE_GOVERNOR="smartassV2"; # Default
#AWAKE_GOVERNOR="performance"; # Best results in Antutu

echo " "
echo ">>> Awake CPU Governor and CPU Frequencies <<<";
echo $AWAKE_GOVERNOR > /system/etc/virtuous_oc/wake_governor;
echo "Setting Awake Governor to: $AWAKE_GOVERNOR"

# =================================================
# Set min cpu speed of awake state
# =================================================

#MIN_SPEED_AWAKE="122880"; # 122MHz
#MIN_SPEED_AWAKE="245760"; # 245MHz (Default)
#MIN_SPEED_AWAKE="368640"; # 368MHz

echo $MIN_SPEED_AWAKE > /system/etc/virtuous_oc/wake_min_freq;
echo "Setting min CPU freq (awake) to: $MIN_SPEED_AWAKE"

# =================================================
# Set max cpu speed of awake state
# =================================================

#MAX_SPEED_AWAKE="1401600"; # 1.4GHz (Default)
#MAX_SPEED_AWAKE="1516800"; # 1.5GHz
#MAX_SPEED_AWAKE="1612800"; # 1.6GHz
#MAX_SPEED_AWAKE="1708800"; # 1.7GHz
#MAX_SPEED_AWAKE="1804800"; # 1.8GHz

echo $MAX_SPEED_AWAKE > /system/etc/virtuous_oc/wake_max_freq;
echo "Setting max CPU freq (awake) to: $MAX_SPEED_AWAKE"
echo " "

# =================================================
# CPU Governors (for sleep state)
# uncomment a line to activate gov.
# =================================================

#SLEEP_GOVERNOR="conservative";
#SLEEP_GOVERNOR="ondemand";
#SLEEP_GOVERNOR="powersave"; # Default

echo ">>> Sleep Governor and CPU Frequencies <<<";
echo $SLEEP_GOVERNOR > /system/etc/virtuous_oc/sleep_governor;
echo "Setting sleep governor to: $SLEEP_GOVERNOR"

# =================================================
# Set min cpu speed of sleep state
# =================================================

#MIN_SPEED_SLEEP="122880"; # 122MHz (Default)
#MIN_SPEED_SLEEP="245760"; # 245MHz

echo $MIN_SPEED_AWAKE > /system/etc/virtuous_oc/sleep_min_freq;
echo "Setting min CPU freq (sleep) to: $MIN_SPEED_SLEEP"

# =================================================
# Set max cpu speed of sleep state
# =================================================

#MAX_SPEED_SLEEP="122880"; # 122MHz
#MAX_SPEED_SLEEP="245760"; # 245MHz (Default)
#MAX_SPEED_SLEEP="368640"; # 368MHz

echo $MIN_SPEED_AWAKE > /system/etc/virtuous_oc/sleep_max_freq;
echo "Setting max CPU freq (sleep) to: $MAX_SPEED_SLEEP"
echo " "

# =================================================
# Set I/O Scheduler
# =================================================

#SCHEDULER="noop";
#SCHEDULER="deadline";
#SCHEDULER="cfq";
#SCHEDULER="bfq";
#SCHEDULER="sio"; # Default
#SCHEDULER="vr"; # Best results in Antutu

echo ">>> I/O Scheduler <<<";
echo $SCHEDULER > /sys/block/mmcblk0/queue/scheduler
echo $SCHEDULER > /sys/block/mmcblk1/queue/scheduler
echo "Setting I/O scheduler to: $SCHEDULER"
echo " "

# =================================================
# Set Media Scanning
# =================================================

if [[ "$MEDIA_SCANNING" == "enabled" ]]
then pm enable com.android.providers.media/com.android.providers.media.MediaScannerReceiver;
echo "Media scanning: Enabled";
else
pm disable com.android.providers.media/com.android.providers.media.MediaScannerReceiver;
echo "Media scanning: Disabled";
fi;

# =================================================
# Set Boot Animation
# =================================================
echo " "

if [[ "$BOOTANIMATION" == "enabled" ]]
then setprop debug.sf.nobootanimation 0
echo "Boot Animation: Enabled";

else
setprop debug.sf.nobootanimation 1
echo "Boot Animation: Disabled";
fi;

# =================================================
# Google Error Reporting
# =================================================
echo " "

if [[ "$ERRORREPORTING" == "enabled" ]]
then
setprop profiler.force_disable_err_rpt 0
setprop profiler.force_disable_ulog 0
echo "Google Error Reporting: Enabled";
else
setprop profiler.force_disable_err_rpt 1
setprop profiler.force_disable_ulog 1
echo "Google Error Reporting: Disabled";
fi;

# =================================================
# Battery Tweak
# =================================================
echo " "

if [[ "$BATTERYTWEAK" == "enabled" ]]
then
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
echo "Battery Tweak: Enabled";
else
echo "200" > /proc/sys/vm/dirty_expire_centisecs
echo "500" > /proc/sys/vm/dirty_writeback_centisecs
echo "Battery Tweak: Disabled";
fi;

# =================================================
# Set SDCard Read Ahead
# =================================================
echo " "

echo $SDCARDREADAHEAD > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
echo "Setting SDcard Read Ahead to: $SDCARDREADAHEAD kb"

# =================================================
# Dalvik Heapsize
# =================================================
echo " "

setprop dalvik.vm.heapsize $DALVIKHEAPSIZE
echo "Setting Dalvik Heapsize to: $DALVIKHEAPSIZE"

# =================================================
# LCD Density
# =================================================
echo " "

setprop ro.sf.lcd_density $LCDDENSITY
echo "Setting LCD Density to: $LCDDENSITY"

echo " "
echo "Done..."