diff options
author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2012-03-15 12:36:30 +0100 |
---|---|---|
committer | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2012-03-15 12:36:30 +0100 |
commit | 99460a06bb5219a969ab3b996f885830cbefb583 (patch) | |
tree | 5343ce369a5c26ba5c5c1c2f5cf4ed70d6aff81c /oneiric-armel-alip-dev | |
parent | b2aea6a3ee10e22aab6839b28343acefc7aa5107 (diff) |
dropped not needed hooks
Diffstat (limited to 'oneiric-armel-alip-dev')
5 files changed, 0 insertions, 119 deletions
diff --git a/oneiric-armel-alip-dev/customization/hooks/01-setup_user_linaro.chroot b/oneiric-armel-alip-dev/customization/hooks/01-setup_user_linaro.chroot deleted file mode 100755 index 9c65f97..0000000 --- a/oneiric-armel-alip-dev/customization/hooks/01-setup_user_linaro.chroot +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -echo "I: create linaro user" -adduser --gecos linaro --disabled-login linaro - -echo "I: set linaro user password" -echo "linaro:linaro" | chpasswd diff --git a/oneiric-armel-alip-dev/customization/hooks/02-add_linaro_to_groups.chroot b/oneiric-armel-alip-dev/customization/hooks/02-add_linaro_to_groups.chroot deleted file mode 100755 index f3b2d4e..0000000 --- a/oneiric-armel-alip-dev/customization/hooks/02-add_linaro_to_groups.chroot +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/sh -x - -DEFGROUPS="admin,adm,dialout,cdrom,plugdev,audio,dip,video" - -/bin/egrep -i "^admin" /etc/group -if [ $? -eq 0 ]; then - echo "User admin exists in /etc/group" -else - echo "User admin does not exists in /etc/group must create" - groupadd admin -fi -/bin/egrep -i "^dialout" /etc/group -if [ $? -eq 0 ]; then - echo "User dialout exists in /etc/group" -else - echo "User dialout does not exists in /etc/group must create" - groupadd dialout -fi -/bin/egrep -i "^cdrom" /etc/group -if [ $? -eq 0 ]; then - echo "User cdrom exists in /etc/group" -else - echo "User cdrom does not exists in /etc/group must create" - groupadd cdrom -fi -/bin/egrep -i "^plugdev" /etc/group -if [ $? -eq 0 ]; then - echo "User plugdev exists in /etc/group" -else - echo "User plugdev does not exists in /etc/group must create" - groupadd plugdev -fi -/bin/egrep -i "^audio" /etc/group -if [ $? -eq 0 ]; then - echo "User audio exists in /etc/group" -else - echo "User audio does not exists in /etc/group must create" - groupadd audio -fi -/bin/egrep -i "^dip" /etc/group -if [ $? -eq 0 ]; then - echo "User dip exists in /etc/group" -else - echo "User dip does not exists in /etc/group must create" - groupadd dip -fi -/bin/egrep -i "^video" /etc/group -if [ $? -eq 0 ]; then - echo "User video exists in /etc/group" -else - echo "User video does not exists in /etc/group must create" - groupadd video -fi -/bin/egrep -i "^adm" /etc/group -if [ $? -eq 0 ]; then - echo "User adm exists in /etc/group" -else - echo "User adm does not exists in /etc/group must create" - groupadd adm -fi - -echo "I: add linaro to ($DEFGROUPS) groups" -usermod -a -G ${DEFGROUPS} linaro diff --git a/oneiric-armel-alip-dev/customization/hooks/03-check_sudoers_for_admin.chroot b/oneiric-armel-alip-dev/customization/hooks/03-check_sudoers_for_admin.chroot deleted file mode 100755 index 5c82429..0000000 --- a/oneiric-armel-alip-dev/customization/hooks/03-check_sudoers_for_admin.chroot +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -# check to make sure sudoers file has ref for admin -ADMINEXISTS="$(awk '$1 == "%admin" { print $1 }' /etc/sudoers)" -if [ -z "$ADMINEXISTS" ]; then - # append admin entry to sudoers - echo "# Members of the admin group may gain root privileges" >> /etc/sudoers - echo "%admin ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers -fi - -# make sure that NOPASSWD is set for %admin -# expecially in the case that we didn't add it to /etc/sudoers -# just blow the %admin line away and force it to be NOPASSWD -sed -i -e ' -/\%admin/ c \ -%admin ALL = (ALL) NOPASSWD: ALL -' /etc/sudoers diff --git a/oneiric-armel-alip-dev/customization/hooks/05-set_sudo_mode.chroot b/oneiric-armel-alip-dev/customization/hooks/05-set_sudo_mode.chroot deleted file mode 100755 index ee02901..0000000 --- a/oneiric-armel-alip-dev/customization/hooks/05-set_sudo_mode.chroot +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -x - -gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type bool --set /apps/gksu/sudo-mode true diff --git a/oneiric-armel-alip-dev/customization/hooks/20-extract_initrd_uuid.binary b/oneiric-armel-alip-dev/customization/hooks/20-extract_initrd_uuid.binary deleted file mode 100755 index fee2b1b..0000000 --- a/oneiric-armel-alip-dev/customization/hooks/20-extract_initrd_uuid.binary +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -mkdir -p uuid -cd uuid - -prefix= - -if ls ../binary/casper/initrd.img-* 2>&1 > /dev/null; then - prefix=../binary/boot/filesystem.dir/casper/ -else - prefix=../binary/boot/filesystem.dir/boot/ -fi - -UUID=`uuidgen -r` - -for initrd in `ls $prefix/initrd.img-*`; do - zcat $initrd | cpio --quiet -id - echo $UUID > conf/uuid.conf - find . | cpio --quiet --dereference -o -H newc | gzip > $initrd - rm -rf * -done - -echo "I: setting rootfs UUID $UUID in initrd... copying to '.disk/casper-uuid'." -if [ ! -d ../binary/boot/filesystem.dir/.disk ]; then - mkdir -p ../binary/boot/filesystem.dir/.disk -fi -echo $UUID > ../binary/boot/filesystem.dir/.disk/casper-uuid -cd .. -rm -rf uuid |