Merge lp:~tom-gall/linaro/live-helper-netbook-efl-add-default-settings into lp:~linaro-maintainers/linaro/live-helper.config.maverick.netbook-efl

Proposed by Tom Gall
Status: Merged
Merged at revision: 45
Proposed branch: lp:~tom-gall/linaro/live-helper-netbook-efl-add-default-settings
Merge into: lp:~linaro-maintainers/linaro/live-helper.config.maverick.netbook-efl
Diff against target: 51 lines (+30/-0)
4 files modified
chroot_local-hooks/01-setup_user_linaro.sh (+6/-0)
chroot_local-hooks/02-add_linaro_to-admin.sh (+5/-0)
chroot_local-hooks/03-check_sudoers_for_admin.sh (+10/-0)
chroot_local-includes/etc/gdm/custom.conf (+9/-0)
To merge this branch: bzr merge lp:~tom-gall/linaro/live-helper-netbook-efl-add-default-settings

Description of the change

- Add default linaro user with linaro as the pw
- check that admin group exists, if not create it
- check sudoers, add admin to sudoers if necessary
- utilize /etc/gdm/custom.conf to autologin with linaro user id

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
=== added file 'chroot_local-hooks/01-setup_user_linaro.sh'
--- chroot_local-hooks/01-setup_user_linaro.sh 1970-01-01 00:00:00 +0000
+++ chroot_local-hooks/01-setup_user_linaro.sh 2010-10-11 04:43:39 +0000
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3echo "I: create linaro user"
4adduser --gecos linaro --disabled-password linaro
5echo "I: set linaro user password"
6echo "linaro:linaro" | chpasswd
07
=== added file 'chroot_local-hooks/02-add_linaro_to-admin.sh'
--- chroot_local-hooks/02-add_linaro_to-admin.sh 1970-01-01 00:00:00 +0000
+++ chroot_local-hooks/02-add_linaro_to-admin.sh 2010-10-11 04:43:39 +0000
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3echo "I: add linaro to admin group"
4usermod -G admin linaro
5
06
=== added file 'chroot_local-hooks/03-check_sudoers_for_admin.sh'
--- chroot_local-hooks/03-check_sudoers_for_admin.sh 1970-01-01 00:00:00 +0000
+++ chroot_local-hooks/03-check_sudoers_for_admin.sh 2010-10-11 04:43:39 +0000
@@ -0,0 +1,10 @@
1#!/bin/sh
2
3# check to make sure sudoers file has ref for admin
4ADMINEXISTS="$(awk '$1 == "%admin" { print $1 }' /etc/sudoers)"
5if [ "%admin" != "$ADMINEXISTS" ]; then
6 # append admin entry to sudoers
7 echo "# Members of the admin group may gain root privileges" >> /etc/sudoers
8 echo "%admin ALL=(ALL) ALL" >> /etc/sudoers
9fi
10
011
=== added directory 'chroot_local-includes/etc'
=== added directory 'chroot_local-includes/etc/gdm'
=== added file 'chroot_local-includes/etc/gdm/custom.conf'
--- chroot_local-includes/etc/gdm/custom.conf 1970-01-01 00:00:00 +0000
+++ chroot_local-includes/etc/gdm/custom.conf 2010-10-11 04:43:39 +0000
@@ -0,0 +1,9 @@
1[daemon]
2DefaultSession=une-efl
3
4AutomaticLoginEnable=true
5AutomaticLogin=linaro
6
7[greeter]
8Include=linaro
9

Subscribers

People subscribed via source and target branches

to all changes: