aboutsummaryrefslogtreecommitdiffstats
path: root/classes/image.bbclass
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2007-03-06 15:56:42 +0000
committerFlorian Boor <florian.boor@kernelconcepts.de>2007-03-06 15:56:42 +0000
commitbea4a815fb63dd0bdf329c7bfff7a5e19ef60dfc (patch)
tree05fa27cbecdbbe228cd9e3d63e83fc0ff456efd0 /classes/image.bbclass
parent2c9d775db1ca48d0e14034284d51c33dd44904a4 (diff)
downloadopenembedded-bea4a815fb63dd0bdf329c7bfff7a5e19ef60dfc.tar.gz
image.bbclass: Add function to turn on autologin for device images we do not want to log in at all.
Diffstat (limited to 'classes/image.bbclass')
-rw-r--r--classes/image.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 83aa80a97e..5055b5b987 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -165,7 +165,14 @@ make_zimage_symlink_relative () {
fi
}
+# Make login manager(s) enable automatic login.
+# Useful for devices where we do not want to log in at all (e.g. phones)
+set_image_autologin () {
+ sed -i 's%^AUTOLOGIN=\"false"%AUTOLOGIN="true"%g' ${IMAGE_ROOTFS}/etc/sysconfig/gpelogin
+}
+
+
# 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
+EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin
addtask rootfs before do_build after do_install