Merge lp:~tom-gall/linaro/live-helper-alip-setup-default-user into lp:~linaro-maintainers/linaro/live-helper.config.maverick.alip

Proposed by Tom Gall
Status: Merged
Merged at revision: 45
Proposed branch: lp:~tom-gall/linaro/live-helper-alip-setup-default-user
Merge into: lp:~linaro-maintainers/linaro/live-helper.config.maverick.alip
Diff against target: 73 lines (+34/-5)
4 files modified
chroot_local-hooks/02-add_linaro_to-admin.sh (+9/-1)
chroot_local-hooks/04-update_gdm_custom.sh (+6/-0)
chroot_local-hooks/05-touch_ICEauthority.sh (+0/-4)
chroot_local-hooks/06-update_gdm_PostSession.sh (+19/-0)
To merge this branch: bzr merge lp:~tom-gall/linaro/live-helper-alip-setup-default-user

Description of the change

major changes in this proposal is:

remove script that touched ~linaro/.ICEauthority (not needed)

add script to adjust gdm/PostSession/Default script to restart gdm on logout

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'chroot_local-hooks/02-add_linaro_to-admin.sh'
2--- chroot_local-hooks/02-add_linaro_to-admin.sh 2010-09-27 10:27:50 +0000
3+++ chroot_local-hooks/02-add_linaro_to-admin.sh 2010-10-06 22:20:53 +0000
4@@ -1,4 +1,12 @@
5-#!/bin/sh
6+#!/bin/sh -x
7+
8+/bin/egrep -i "^admin" /etc/group
9+if [ $? -eq 0 ]; then
10+ echo "User admin exists in /etc/group"
11+else
12+ echo "User admin does not exists in /etc/group must create"
13+ groupadd admin
14+fi
15
16 echo "I: add linaro to admin group"
17 usermod -G admin linaro
18
19=== modified file 'chroot_local-hooks/04-update_gdm_custom.sh'
20--- chroot_local-hooks/04-update_gdm_custom.sh 2010-09-27 10:28:51 +0000
21+++ chroot_local-hooks/04-update_gdm_custom.sh 2010-10-06 22:20:53 +0000
22@@ -7,12 +7,18 @@
23 sed -i 's/\(AutomaticLogin=\).*/\1linaro/g' /etc/gdm/custom.conf
24 sed -i 's/\(AutomaticLoginEnable=\).*/\1true/g' /etc/gdm/custom.conf
25
26+
27 else
28
29 cat > /etc/gdm/custom.conf <<EOF
30 [daemon]
31+DefaultSession=xubuntu
32+
33 AutomaticLoginEnable=true
34 AutomaticLogin=linaro
35+
36+[greeter]
37+Include=linaro
38 EOF
39
40 fi
41
42=== removed file 'chroot_local-hooks/05-touch_ICEauthority.sh'
43--- chroot_local-hooks/05-touch_ICEauthority.sh 2010-09-27 10:29:32 +0000
44+++ chroot_local-hooks/05-touch_ICEauthority.sh 1970-01-01 00:00:00 +0000
45@@ -1,4 +0,0 @@
46-#!/bin/sh
47-touch ~linaro/.ICEauthority
48-chown linaro:linaro ~linaro/.ICEauthority
49-chmod 644 ~linaro/.ICEauthority
50
51=== added file 'chroot_local-hooks/06-update_gdm_PostSession.sh'
52--- chroot_local-hooks/06-update_gdm_PostSession.sh 1970-01-01 00:00:00 +0000
53+++ chroot_local-hooks/06-update_gdm_PostSession.sh 2010-10-06 22:20:53 +0000
54@@ -0,0 +1,19 @@
55+#!/bin/sh
56+
57+echo "I: create / modify /etc/gdm/PostSession/Default"
58+
59+if [ -e /etc/gdm/PostSession/Default ]; then
60+
61+# there's no point fixing it up, let's just do the right thing
62+rm /etc/gdm/PostSession/Default
63+
64+fi
65+
66+cat > /etc/gdm/PostSession/Default <<EOF
67+#!/bin/sh
68+
69+/sbin/restart gdm
70+
71+exit 0
72+EOF
73+

Subscribers

People subscribed via source and target branches

to all changes: