[Galaxy S I9000 Android Development] didicola:
#!/system/xbin/sh
touch /data/local/DevilSettinxExecuted.log
echo "DevilSettinx executed @`date`" >> /data/local/DevilSettinxExecuted.log
#
#
#
#####################################################################
#init.d-script for devil2-kernels
#v2.08 31-05-2012
#####################################################################
#
#
#
#####################################################################
#DESCRIPTION
#this script is based on the devil.json made by crack on 27-05-2012
#so all credits go to him, i just copypasted it into this script.
#greetz,
#sUsH667
#####################################################################
#STRUCTURE OF THE SCRIPT
#name of the function
#description
#settinx possible
#function where you have to swap the ?? with your desired values
#####################################################################
#INSTRUCTIONS
#1. change ALL (really, ALL!!!) ?? to the values you want to set
#2. remove the .txt file extension
#3. copy the edited script to /system/etc/init.d/
#4. change permissions of script (eg with root explorer) to r-xr-xr-x
# (or to the permissions all the other scripts in init.d have)
#####################################################################
#
#
#
#####################################################################
#beginning of script
#####################################################################
#
mount -o remount,rw -t /dev/block/mtdblock5 /system
#
#RAM settings
#Choice between three RAM Settings
#0:CM9 378MB|1:XL 391MB|2:XL_bm 403MB
echo 2 > /sys/kernel/bigmem/enable && touch /data/local/devil/bigmem && echo ?? > /data/local/devil/bigmem
#
#Toggle ZRAM/Swap
#Toggles ZRAM/Swap
#0:Disable|1:Swap|2:ZRAM
echo 1 > /data/local/devil/swap_use
#
#Devil Idle
#Sets Devil Idle Mode
#0:Disable|1:Enable
echo 1 > /sys/class/misc/devil_idle/bus_limit && echo ?? > /data/local/devil/bus_limit
#
#Screen off - Min/Max Freq
#Toggles Min/Max Freq while screen off
#0:Disable|1:Enable
echo ?? > /sys/class/misc/devil_idle/user_min_max_enable && echo ?? > /data/local/devil/user_min_max_enable
#
#Screen off - Min Freq
#Sets minimum frequency while screen off
#100000:100|200000:200|400000:400|800000:800
echo ?? > /sys/class/misc/devil_idle/user_min && echo ?? > /data/local/devil/screen_off_min
#
#Screen off - Max Freq
#Sets maximum frequency while screen off
#1400000:1400|1300000:1300|1200000:1200|1000000:1000|800000:800|400000:400
echo ?? > /sys/class/misc/devil_idle/user_max && echo ?? > /data/local/devil/screen_off_max
#
#LiveOC target high
#Sets LiveOC High Target Frequency
#1400000:1400|1300000:1300|1200000:1200|1000000:1000|800000:800|400000:400|100000:100
echo ?? > /sys/class/misc/liveoc/oc_target_high
#
#LiveOC target low
#Sets LiveOC Low Target Frequency
#1400000:1400|1300000:1300|1200000:1200|1000000:1000|800000:800|400000:400|100000:100
echo ?? > /sys/class/misc/liveoc/oc_target_low
#
#Toggle Fast charge
#Enable Fast Charge Mode
#1:Fast charge|0:Normal charge
echo ?? > /sys/kernel/fast_charge/force_fast_charge
#
#Toggle Touchwake
#Toggles Touchwake
#1:Enable|0:Disable
echo ?? > /sys/class/misc/touchwake/enabled
#
#Touchwake Delay
#Sets Touchwake Delay
#30000:30sec|45000:45sec|60000:60sec
echo ?? > /sys/class/misc/touchwake/delay
#
#Toggle Deep Idle
#Toggles Deep Idle
#1:On|0:Off
echo 1 > /sys/class/misc/deepidle/enabled
#
#Bluetooth kill
#Kill Bluetooth (cannot be enabled again until reboot)
#1:Disable Bluetooth|0:Enable Bluetooth
echo 1 > /sys/class/rfkill/rfkill0/soft
#
#Vibration Intensity
#Sets the vibration intensity
#43640:maximum|40140:default|31820:medium|25910:low|20000:minimum
echo ?? > /sys/class/timed_output/vibrator/duty && echo ?? > /data/local/devil/vibrator
#
#Fsync Control
#Toggles Fsync (better to keep Enable)
#0:Disable Fsync|1:Enable Fsync
echo ?? > /sys/class/misc/fsynccontrol/fsync_enabled && echo ?? > /data/local/devil/fsync
#
#Smooth UI
#Toggles Smooth UI
#0:Disable|1:Enable
echo ?? > /sys/class/misc/devil_tweaks/smooth_ui_enabled && echo ?? > /data/local/devil/smooth_ui
#
#Wifi Power Mode
#Sets Wifi Power Mode
#0:Powersave Wifi|1:Stronger Wifi
echo ?? > /sys/module/bcmdhd/parameters/uiFastWifi && echo ?? > /data/local/devil/wifi
#
#Governor Presets
#Sets Governor Presets Settings
#0:Normal|1:Smooth|2:Powersave
echo ?? > /sys/class/misc/devil_tweaks/governors_profile && echo ?? > /data/local/devil/profile
#
#####################################################################
#end of script
#####################################################################

so if i saved the file and made it a script for the bluetooth for example i could never enable it because i would kill it for ever right?

is the configuration right i have made?