Skip to content

Commit

Permalink
use autologin/xinit to start X session
Browse files Browse the repository at this point in the history
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
  • Loading branch information
freemangordon committed Mar 12, 2023
1 parent 77c850f commit b02ecf6
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 33 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
@@ -1,3 +1,9 @@
maemo-system-services (0.6.7-0) unstable; urgency=low

* use autologin/xinit to start X session

-- Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> Wed, 21 Sep 2022 07:41:55 +0300

maemo-system-services (0.6.6-0) unstable; urgency=low

* xsession: start icd2 before xsession
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Expand Up @@ -18,7 +18,7 @@ Description: Maemo debhelper plugins

Package: maemo-system-services
Architecture: any
Depends: sysv-rc | openrc
Depends: sysv-rc | openrc, autologin, xinit
Description: definitions of essential maemo system services
This package contains the definitions of services essential for the
normal operation of a Maemo system.
1 change: 1 addition & 0 deletions debian/maemo-system-services.maintscript
@@ -0,0 +1 @@
rm_conffile /etc/init.d/xsession 0.6.7~
6 changes: 6 additions & 0 deletions debian/maemo-system-services.postinst
Expand Up @@ -9,3 +9,9 @@ if [ -f /etc/init.d/actdead.conf ]; then
fi

#DEBHELPER#

if [ "$1" = configure ]; then
if dpkg --compare-versions "$2" lt 0.6.7; then
update-rc.d xsession remove >/dev/null
fi
fi
14 changes: 6 additions & 8 deletions debian/maemo-system-services.xorg.init
Expand Up @@ -3,18 +3,16 @@
description="Xorg Server"

depend() {
need dsme
after bootmisc rsyslog
need dsme mce
after bootmisc rsyslog ofono icd2
keyword -timeout
provide xsession
}

start() {
einfo "Starting Xorg Server" > /dev/console
XORG_OPTIONS="-logfile /tmp/Xorg.0.log -logverbose 1 -nolisten tcp -noreset -s 0 -core"
/usr/sbin/dsmetool -n -8 -r "/usr/bin/Xorg $XORG_OPTIONS"
}

start_post() {
DISPLAY=:0 /usr/sbin/waitx
XORG_OPTIONS="-keeptty -logfile /tmp/Xorg.0.log -logverbose 1 -noreset -s 0 -core"
/usr/sbin/dsmetool -n -8 -r "autologin user startx -- $XORG_OPTIONS"
}

stop_post() {
Expand Down
23 changes: 0 additions & 23 deletions debian/maemo-system-services.xsession.init

This file was deleted.

2 changes: 1 addition & 1 deletion debian/session/Xsession-post
Expand Up @@ -73,4 +73,4 @@ if [ -n "$SESSIONFILES" ]; then
set -e
fi

exit 0
while :; do sleep infinity; done

0 comments on commit b02ecf6

Please sign in to comment.