The Android Open Source Project | 23580ca | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | |
| 2 | on init |
| 3 | export PATH /sbin |
| 4 | export ANDROID_ROOT /system |
| 5 | export ANDROID_DATA /data |
| 6 | export EXTERNAL_STORAGE /sdcard |
| 7 | |
| 8 | symlink /system/etc /etc |
| 9 | |
| 10 | mkdir /sdcard |
| 11 | mkdir /system |
| 12 | mkdir /data |
| 13 | mkdir /cache |
| 14 | mount /tmp /tmp tmpfs |
| 15 | |
| 16 | on boot |
| 17 | |
| 18 | ifup lo |
| 19 | hostname localhost |
| 20 | domainname localdomain |
| 21 | |
| 22 | class_start default |
| 23 | |
| 24 | |
| 25 | service recovery /sbin/recovery |
| 26 | |
| 27 | service adbd /sbin/adbd recovery |
| 28 | |
| 29 | on property:persist.service.adb.enable=1 |
| 30 | start adbd |
| 31 | |
| 32 | on property:persist.service.adb.enable=0 |
| 33 | stop adbd |