summaryrefslogtreecommitdiff
path: root/init.rc
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:28:42 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:28:42 -0800
commit8fd8fc6c4d23e1a287fc64f817de23cabcf55b78 (patch)
tree5c6d91909132e7371d606ad9334f9c0d40314e53 /init.rc
parent76c49205f9ba2be06a140fb8d151c3df3614c485 (diff)
downloaddiskinstaller-8fd8fc6c4d23e1a287fc64f817de23cabcf55b78.tar.gz
Diffstat (limited to 'init.rc')
-rw-r--r--init.rc30
1 files changed, 30 insertions, 0 deletions
diff --git a/init.rc b/init.rc
new file mode 100644
index 0000000..48cf3ca
--- /dev/null
+++ b/init.rc
@@ -0,0 +1,30 @@
+on init
+ export PATH /sbin:/system/sbin:/system/bin
+ export ANDROID_ROOT /system
+ export ANDROID_DATA /data
+
+ symlink /system/etc /etc
+
+ mkdir /data
+ mkdir /cache
+ mount /tmp /tmp tmpfs
+
+# mount the installer needed partitions
+# mount ext2 /dev/block/sdb2 /data ro
+
+on boot
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+ class_start default
+
+service installer /system/bin/installer -p /dev/block/sdb2
+ console
+ oneshot
+
+service logcat /system/bin/logcat
+ console
+
+service console /system/bin/sh
+ console