Merge "init.ranchu.rc: Add goldfish-logcat and goldfish-setup services"
diff --git a/init.ranchu.rc b/init.ranchu.rc
index 3cb0b61..a53fb2c 100644
--- a/init.ranchu.rc
+++ b/init.ranchu.rc
@@ -44,7 +44,25 @@
     stop dund
     stop akmd
 
+# start essential services
+# These were written for the classic emulator, but are applicable to ranchu
+    start goldfish-logcat
+    start goldfish-setup
+
 # enable Google-specific location features,
 # like NetworkLocationProvider and LocationCollector
     setprop ro.com.google.locationfeatures 1
 
+service goldfish-setup /system/etc/init.goldfish.sh
+    user root
+    group root
+    oneshot
+
+# -Q is a special logcat option that forces the
+# program to check wether it runs on the emulator
+# if it does, it redirects its output to the device
+# named by the androidboot.console kernel option
+# if not, is simply exits immediately
+
+service goldfish-logcat /system/bin/logcat -Q
+    oneshot