on early-init
	insmod /startup/modules/bcm5892-rtc.ko
	start ueventd

on init
	insmod /startup/modules/devices_base.ko
	insmod /startup/modules/S78_M32_P36.ko	
	insmod /startup/modules/ioconfig.ko
	insmod /startup/modules/pm_bcm5892.ko

#USB support
	insmod /startup/modules/bcm589x-dwccom.ko
	insmod /startup/modules/bcm589x-otg.ko
	insmod /startup/modules/tty-devices.ko
	insmod /startup/modules/tty-host.ko
	#insmod /startup/modules/bcm589x-usb-host.ko
	
#base drivers	
	insmod /startup/modules/pmu_dummy.ko
	insmod /startup/modules/misc.ko
	insmod /startup/modules/input_base.ko power_key=223 press_time=2
	insmod /startup/modules/keypad_matrix.ko
	#power on gprs
	if property:ro.fac.radio!=  write /sys/devices/platform/misc/gprs/cmd 0

#card drivers (sci msr pcd)
	insmod /startup/modules/sci_bcm5892_ncn8025.ko
#	insmod /startup/modules/msr.ko
#	insmod /startup/modules/pcd_base.ko
#	insmod /startup/modules/pcd_rc663.ko

#security drivers (bbl, sec, verify)
	insmod /startup/modules/bcm5892_bbl.ko
	insmod /startup/modules/bcm589x-sec.ko
	insmod /startup/modules/verify.ko

#sound driver
	if property:ro.fac.audiocard=CS4344-CZZR insmod /startup/modules/bcm589x_i2s.ko

#log server driver
	insmod /startup/modules/logger.ko

#printer driver
#	if property:ro.fac.printer=LTPJ245G insmod /startup/modules/sii_printer.ko
#	if property:ro.fac.printer=PRT48AF insmod /startup/modules/prt_printer.ko
		
	chmod 666 /sys/power/state
	chmod 666 /sys/class/backlight/pwm-backlight/brightness

	#time of back light auto active, unit:Second 	
	setprop persist.sys.backlighttime 60

	setprop persist.sys.sleeptime 0
	setprop persist.sys.sleepwaittime 1
	
# uart symlink
	symlink /dev/ttyAMA0 /dev/ttymodem
	symlink /dev/ttyAMA1 /dev/ttywl
  
# usb ethernet driver
	#insmod /startup/modules/asix.ko

# create some symlinks
	symlink /dev/input/event0 /dev/keypad
	symlink /dev/input/event1 /dev/keypad_ped
	symlink /dev/graphics/fb0 /dev/fb
	symlink /dev/graphics/fb1 /dev/fb_ped

on post-fs
#LCD driver
#	symlink /startup/firmware/lcd_320x240_r90.rle /startup/firmware/lcd.watermark
#	write /sys/class/backlight/pwm-backlight/brightness  0
	insmod /startup/modules/lcd_fb.ko
	insmod /startup/modules/lcd_hw_smc.ko
	insmod /startup/modules/lcd_panel_BTG_12864BU.ko
	
service servicemanager /usr/bin/servicemanager
	class core
	user root
	group root
	critical
	onrestart restart systemservice
	onrestart restart ipservice
	
service ipservice /usr/bin/ipservice
	disabled
	user root
	group root

#service pedd /usr/bin/pedd
#	user root
#	group root

service modemd /usr/bin/modemd
	disabled
	user root
	group root

#service keyman /usr/bin/keyman
#	user root
#	group root

service xcb /usr/bin/xcbd
	disabled
	user MAINAPP
	group MAINAPP

service crashd /usr/bin/crashd
	user MAINAPP
	group MAINAPP

service systemservice /usr/bin/systemservice
	user root
	group root
	
on property:persist.sys.ipservice.enable=1
	start ipservice

on property:persist.sys.ipservice.enable=0
	stop ipservice

on property:persist.sys.modemd.enable=1
	start modemd

on property:persist.sys.modemd.enable=0
	stop modemd

on property:persist.sys.xcb.enable=1
	start xcb

on property:persist.sys.xcb.enable=0
	stop xcb
