source: lliurex-maker/trunk/fuentes/lliurex-maker.install/usr/share/lliurex-maker/chroot-hooks/01-lightdm.sh @ 422

Last change on this file since 422 was 422, checked in by hectorgh, 4 years ago

adding project files

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2# This script fix the lightdm.conf to solve the
3# autologin problem. This situation can be less braindamaged
4# but Ubuntu not works fine with custom derivatives...lightdm
5# is now a One-and-enormous-configuration-file.
6#
7# This script is licensed under GPL v3 or higher
8#
9# Author:       Angel Berlanas Vicente
10#                       <angel.berlanas@gmail.com>
11
12# Some values
13LIGHTDM_DM="/etc/lightdm/lightdm.conf"
14GNOME_DM="/etc/lightdm/gnome-fallback.conf"
15XFCE4_DM="/etc/lightdm/xfce.conf"
16
17# The mother of the lamb
18
19if [ -f "$XFCE4_DM" ] ; then 
20        cat "$XFCE4_DM" > "$LIGHTDM_DM"
21        echo "XFCE4 at Lightdm" >> /tmp/lightdm-cat.log
22        exit 0
23fi
24
25if [ -f "$GNOME_DM" ] ; then
26        cat "$GNOME_DM" > "$LIGHTDM_DM"
27        echo "GNOME at Lightdm" >> /tmp/lightdm-cat.log
28        exit 0
29fi
30
31# The second omnibus
32LIGHTDM_DM="chroot/$LIGHTDM_DM"
33GNOME_DM="chroot/$GNOME_DM"
34XFCE4_DM="chroot/$XFCE4_DM"
35
36# The OTHER mother of the lamb
37
38if [ -f $XFCE4_DM ] ; then 
39        cat $XFCE4_DM > $LIGHTDM_DM
40        echo "XFCE4 chroot at Lightdm" >> /tmp/lightdm-cat.log
41        exit 0
42fi
43
44if [ -f $GNOME_DM ] ; then
45        cat $GNOME_DM > $LIGHTDM_DM
46        echo "GNOME chroot at Lightdm" >> /tmp/lightdm-cat.log
47        exit 0
48fi
Note: See TracBrowser for help on using the repository browser.