[oe-commits] org.oe.dev image.bbclass: Add function to turn on autologin for device images we do not want to log in at all.

florian commit openembedded-commits at lists.openembedded.org
Tue Mar 6 17:17:46 UTC 2007


image.bbclass: Add function to turn on autologin for device images we do not want to log in at all.

Author: florian at openembedded.org
Branch: org.openembedded.dev
Revision: b083ff677e1c9520539384b5b8af90ac0977df49
ViewMTN: http://monotone.openembedded.org/revision.psp?id=b083ff677e1c9520539384b5b8af90ac0977df49
Files:
1
classes/image.bbclass
Diffs:

#
# mt diff -r17e513d6a4cf1050898cf87408b1c261f4be175c -rb083ff677e1c9520539384b5b8af90ac0977df49
#
# 
# 
# patch "classes/image.bbclass"
#  from [9089c7f293846766ae81b442270036d04893fe29]
#    to [a8711c6252c211699a73f6b7017177bfdc03ca54]
# 
============================================================
--- classes/image.bbclass	9089c7f293846766ae81b442270036d04893fe29
+++ classes/image.bbclass	a8711c6252c211699a73f6b7017177bfdc03ca54
@@ -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






More information about the Openembedded-commits mailing list