Commit 56f70c7e authored by Florent Revest's avatar Florent Revest

Merge pull request #3 from theappleman/linger

Fix lingering for ceres
parents c7cf9fb0 48d1f83c
...@@ -11,6 +11,8 @@ do_install_append() { ...@@ -11,6 +11,8 @@ do_install_append() {
install -m 0644 ${WORKDIR}/65-android.rules ${D}${sysconfdir}/udev/rules.d/65-android.rules install -m 0644 ${WORKDIR}/65-android.rules ${D}${sysconfdir}/udev/rules.d/65-android.rules
# Enables auto-login for ceres # Enables auto-login for ceres
install -d ${D}/var/lib/systemd/linger
touch ${D}/var/lib/systemd/linger/ceres
sed -i "s@agetty --noclear @agetty --autologin ceres @" ${D}/lib/systemd/system/getty@.service sed -i "s@agetty --noclear @agetty --autologin ceres @" ${D}/lib/systemd/system/getty@.service
# In current systemd versions we have to take care ourselves of the dbus user service, it should be handled in the next versions # In current systemd versions we have to take care ourselves of the dbus user service, it should be handled in the next versions
...@@ -23,13 +25,4 @@ do_install_append() { ...@@ -23,13 +25,4 @@ do_install_append() {
install -m 0644 ${WORKDIR}/dbus.conf ${D}/etc/systemd/system/user@.service.d/dbus.conf install -m 0644 ${WORKDIR}/dbus.conf ${D}/etc/systemd/system/user@.service.d/dbus.conf
} }
pkg_postinst_${PN}() {
#!/bin/sh -e
if [ x"$D" = "x" ]; then
loginctl enable-linger ceres
else
exit 1
fi
}
PACKAGECONFIG_append += "pam" PACKAGECONFIG_append += "pam"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment