PRODUCT_COPY_FILES := \
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml \
$(if $(wildcard $(PRODUCT_DIR)init.rc),$(PRODUCT_DIR),$(LOCAL_PATH)/)init.rc:root/init.rc \
+ $(if $(wildcard $(PRODUCT_DIR)init.sh),$(PRODUCT_DIR),$(LOCAL_PATH)/)init.sh:system/etc/init.sh \
$(if $(wildcard $(PRODUCT_DIR)init.$(TARGET_PRODUCT).rc),$(PRODUCT_DIR)init.$(TARGET_PRODUCT).rc:root/init.$(TARGET_PRODUCT).rc) \
$(if $(wildcard $(PRODUCT_DIR)excluded-input-devices.xml),$(PRODUCT_DIR),$(LOCAL_PATH)/)excluded-input-devices.xml:system/etc/excluded-input-devices.xml \
disabled
oneshot
+service userinit /system/bin/sh /system/etc/init.sh
+ oneshot
+ disabled
+
service logcat /system/bin/logcat -v time -f /data/log.txt
disabled
oneshot
+on property:dev.bootcomplete=1
+ start userinit
+ stop console
+
on property:gsm.sim.state=READY
start ppp
--- /dev/null
+PATH=/system/bin:/system/xbin
+
+DMIPATH=/sys/class/dmi/id
+
+board=`cat $DMIPATH/product_name`
+case "$board" in
+ *)
+ alsa_amixer set Master on
+ ;;
+esac
+
+alsa_amixer set Master 100
+alsa_amixer set Headphone 100
+alsa_amixer set Speaker 100
+
+# disable cursor blinking
+echo -e '\033[?17;0;0c' > /dev/tty0