updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / lxdm-git / lxdm.install
blobac23f4b38c8c4db30db5e3347b4b83dd7e2cd405
1 pkgname=lxdm-git
3 post_install() {
4 # Adding lxdm group
5         if [ -z "`getent group "lxdm" 2> /dev/null`" ]; then
6                 groupadd lxdm
7                 chown root:lxdm /etc/lxdm/lxdm.conf
8         fi
10 cat << EOF
12         >>> Substitute your old /etc/lxdm/lxdm.conf
13         >>> with the new one to make the lxdm work properly.
14         >>>
15         >>> To make the LXDM as your default DM,
16         >>> put, 'lxdm' or '@lxdm' (without quotes) on DAEMONS in /etc/rc.conf
17         >>>
18         >>> You can also use /etc/inittab,
19         >>> just add 'x:5:respawn:/usr/sbin/lxdm >& /dev/null' (without quotes)
20         >>> in the end of the file /etc/inittab
21         >>> and uncoment the line on the top 'id:5:initdefault:'.
23 EOF
26 post_upgrade() {
27         post_install $1
30 post_remove() {
31         # Removing lxdm group
32         getent group "lxdm" &>/dev/null && groupdel lxdm #1>/dev/null
33         return 0
36 op=$1
37 shift
39 $op "$@"