#!/bin/sh

set -x

# backup current lightdm.conf
mv /target/etc/init/lightdm.conf /target/etc/init/lightdm.conf.volatile

# create new simple lightdm.conf
cat > /target/etc/init/lightdm.conf << EOF
# LightDM - light Display Manager
#

description     "LightDM Display Manager"
author          "Franz Hsieh <franz.hsieh@canonical.com>"

start on filesystem

script
    exit 0
end script
EOF
