OSDN Git Service

* move EXTERNAL_STORAGE_STATE to init.rc
authorChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 21 Jul 2009 14:24:28 +0000 (22:24 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 21 Jul 2009 14:39:21 +0000 (22:39 +0800)
* move mountd.conf to ramdisk, symlink to /system/etc

AndroidBoard.mk
init.rc
system.prop

index 3aa61c8..ec4e608 100644 (file)
@@ -29,5 +29,11 @@ $(INSTALLED_RAMDISK_TARGET): $(file)
 $(eval $(call add-prebuilt-target,$(TARGET_ROOT_OUT),init.eeepc.rc))
 $(INSTALLED_RAMDISK_TARGET): $(file)
 $(eval $(call add-prebuilt-target,$(TARGET_OUT)/etc,init.eeepc.sh))
-$(eval $(call add-prebuilt-target,$(TARGET_OUT)/etc,mountd.conf))
 $(eval $(call add-prebuilt-target,$(TARGET_OUT_KEYLAYOUT),AT_Translated_Set_2_keyboard.kl))
+
+file := $(TARGET_ROOT_OUT)/mountd.conf
+$(file): $(LOCAL_PATH)/mountd.conf $(ACP)
+       $(transform-prebuilt-to-target)
+       ln -sf ../../mountd.conf $(TARGET_OUT)/etc
+ALL_PREBUILT += $(file)
+$(INSTALLED_RAMDISK_TARGET): $(file)
diff --git a/init.rc b/init.rc
index 2f01256..8257c5d 100644 (file)
--- a/init.rc
+++ b/init.rc
@@ -168,6 +168,8 @@ on boot
     setprop net.tcp.buffersize.edge    4093,26280,35040,4096,16384,35040
     setprop net.tcp.buffersize.gprs    4092,8760,11680,4096,8760,11680
 
+    setprop EXTERNAL_STORAGE_STATE mounted
+
     class_start default
 
 ## Daemon processes to be run by init.
index 538e9a1..87b002b 100644 (file)
@@ -2,12 +2,6 @@
 ro.config.sync = yes
 app.setupwizard.disable=1
 keyguard.no_require_sim=1
-# we are faking sdcard partition for now
-# if you have a real sdcard, you should remove
-# this line and let either vold or mountd to
-# set it. And to do that correctly, you also
-# need to change vold.conf or mountd.conf
-EXTERNAL_STORAGE_STATE=mounted
 # default the paths and parameters for sys fs
 ro.sys.fs.power_supply.ac=/AC0
 ro.sys.fs.power_supply.bat=/BAT0