[G1 Android Development] Rushness:
e334 made that stuff with the init.d folder. So it is already there.

But it looks like you are working with the old update-script.

e334 changed it into a updater-script, here's the code:

Could you tell me steps here?

show_progress(0.85, 60);
ui_print("--------------------------------");
ui_print("- Preparing to install -");
if is_mounted("/system")
then
unmount("/system");
endif;
if is_mounted("/data")
then
unmount("/data");
endif;
format("MTD", "userdata");
format("MTD", "system");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");
package_extract_file("META-INF/com/bin/checksys.sh","/tmp/checksys.sh");
set_perm(0,0,755,"/tmp/checksys.sh");
run_program("/tmp/checksys.sh");
ui_print("- Extracting System -");
package_extract_dir("system", "/system");
ui_print("- Checking Device -");
if file_getprop("/tmp/nfo.prop","sysboard") == "trout" ||
file_getprop("/tmp/nfo.prop","sysboard") == "sapphire"
then
if file_getprop("/tmp/nfo.prop","sysboard") == "trout"
then
ui_print("- Device: HTC Dream -");
run_program("/sbin/mkdir","-p","/system/sd");
run_program("/sbin/mount","-t","auto","/dev/block/mmcblk0p2","/system/sd");
package_extract_dir("sd-ext","/system/sd");
symlink("/system/sd/app_s","/system/app");
set_perm_recursive(1000, 1000, 0755, 0644, "/system/sd/app_s");
ui_print("- Installed to SD:EXT -");
else
# We have HTC Sapphire
ui_print("- Device: HTC Sapphire -");
package_extract_dir("sd-ext","/data");
set_perm_recursive(1000, 1000, 0755, 0644, "/data/app_s");
symlink("/data/app_s","/system/app");
endif;
else
ui_print("Unknown device found!");
ui_print("Installer will bug!");
run_program("/sbin/exit","333");
endif;

ui_print("- Symlinking Toolbox -");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/mkdosfs");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
symlink("dumpstate", "/system/bin/dumpcrash");
#Legacy Binaries
symlink("/system/bin/e2fsck_recvy","/system/bin/e2fsck");
symlink("/system/bin/mke2fs_recvy","/system/bin/mke2fs");
symlink("/system/bin/resize2fs_recvy","/system/bin/resize2fs");
ui_print("- Setting Permissions -");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluez");
set_perm(0, 0, 0755, "/system/etc/bluez");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(1001, 1005, 0444, "/system/etc/AudioPara4.csv");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 0644,"/system/xbin/xbin.sqf");
set_perm(0, 0, 06755, "/system/bin/su");
set_progress(0.9);
ui_print("- Flashing kernel -");
package_extract_file("boot.img","/tmp/boot.img");
write_raw_image("/tmp/boot.img", "boot");
delete("/tmp/boot.img");
set_progress(0.93);
#Install "Audio hack"

ui_print("- Adding AudioHack -");
if file_getprop("/tmp/nfo.prop","sysboard") == "trout"
then
#we have a HTC Dream
ui_print("- Device: HTC Dream -");
run_program("/sbin/sh","-c",
concat("busybox gzip -dc ",
"/system/etc/.audio/AudioPara_TMUS_DREA.csv.gz > ",
"/system/etc/AudioPara4.csv"));
#I'm a nob at this.. take it easy :) -e334
run_program("/sbin/sh","-c","
sed -i 's/htc_sapphire/htc_trout' /system/build.prop
sed -i 'ro.product.device=sapphire/ro.product.device=dream' /system/build.prop
sed -i 'ro.product.board=sapphire/ro.product.board=trout' /system/build.prop
sed -i 'ro.build.product=sapphire/ro.build.product=dream' /system/build.prop
");
#Directory for ext...
run_program("/sbin/mkdir","-p","/system/sd");
set_perm_recursive(0, 0, 0755, 0644, "/system/sd");
else
#this is a HTC Sapphire (32B)
ui_print("- Device: HTC Sapphire -");
run_program("/sbin/sh","-c",
concat("busybox gzip -dc ",
"/system/etc/.audio/AudioPara_TMUS_SAPP.csv.gz > ",
"/system/etc/AudioPara4.csv"));
endif;
ui_print("- Updating Permissions -");
#now update permissions on the new file and we are done
set_perm(0, 0, 0644, "/system/etc/AudioPara4.csv");

#Ensure we sync.. I've seen files flashed at the end of a edify script like
#this vanish
run_program("/sbin/sh","-c","sleep 2; sync");
ui_print("- Syncing flashed files -");

unmount("/system");
unmount("/userdata");
ui_print("--------------------------------");
ui_print("- LEGENDARY SENSE 2.1 -");
ui_print("- -_* -");
ui_print("- I'M WATCHING YOU! -");
ui_print("--------------------------------");
ui_print("- Thanks to: -");
ui_print("- -");
ui_print("- vega //new base permission -");
ui_print("- e334 //EVERYTHING he did!!! -");
ui_print("- zFr3eak //always inspiring me-");
ui_print("- Artifex //inspiring me too -");
ui_print("- Everyone else that inspired, -");
ui_print("- helped, motivated me! -");
ui_print("--------------------------------");
ui_print("- Thank you, COMMUNITY! -");
ui_print("--------------------------------");
set_progress(1.0);