]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: Add routine for disabling x startup when needed
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 10 Nov 2008 16:21:10 +0000 (17:21 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 10 Nov 2008 16:21:10 +0000 (17:21 +0100)
meta/classes/image.bbclass

index 35b7e1249890736c4f7d944cda2c76055c7b121c..3678459380256db65e1ac9abb0e29afda166206e 100644 (file)
@@ -211,7 +211,14 @@ rootfs_update_timestamp () {
        date "+%m%d%H%M%Y" >${IMAGE_ROOTFS}/etc/timestamp
 }
 
+# Prevent X from being started
+rootfs_no_x_startup () {
+       if [ -f ${IMAGE_ROOTFS}/etc/init.d/xserver-nodm ]; then
+               chmod a-x ${IMAGE_ROOTFS}/etc/init.d/xserver-nodm
+       fi
+}
+
 # export the zap_root_password, create_etc_timestamp and remote_init_link
-EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp
+EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp rootfs_no_x_startup
 
 addtask rootfs before do_build after do_install