OSDN Git Service

init.x86.rc: use the marshmallow built-in command exec
[android-x86/device-generic-common.git] / init.x86.rc
index 02af66f..c210752 100644 (file)
@@ -44,7 +44,7 @@ on init
     setprop ro.product.manufacturer $[/sys/class/dmi/id/sys_vendor]
     setprop ro.product.model $[/sys/class/dmi/id/product_name]
 
-    exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
+    exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
 
 on fs
     mount_all /fstab.${ro.hardware}
@@ -171,16 +171,16 @@ on property:system_init.startsurfaceflinger=0
 
 on property:sys.boot_completed=1
     write /proc/sys/kernel/ctrl-alt-del 0
-    exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
+    exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
 
 on property:init.svc.bluetoothd=running
-    exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
+    exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
 
 on property:init.svc.bluetoothd=stopped
-    exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
+    exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
 
 on property:net.dns1=*
-    exec /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
+    exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
 
 on property:debug.logcat=1
     class_start debug