#!/bin/sh
sv check dbus >/dev/null || exit 1
[ ! -d /run/lightdm ] && mkdir -p /run/lightdm
chmod 0711 /run/lightdm
chown lightdm:lightdm /run/lightdm
mkdir -p /var/lib/lightdm /var/lib/lightdm-data
chown -R lightdm:lightdm /var/lib/lightdm /var/lib/lightdm-data
exec lightdm
