Cleanup of scripts/live-bottom
authorMichael Prokop <devnull@localhost>
Sun, 20 Jul 2008 17:19:41 +0000 (19:19 +0200)
committerMichael Prokop <devnull@localhost>
Sun, 20 Jul 2008 17:19:41 +0000 (19:19 +0200)
29 files changed:
debian/changelog
scripts/live-bottom/01integrity_check [deleted file]
scripts/live-bottom/02etc_live_conf [deleted file]
scripts/live-bottom/02timezone [deleted file]
scripts/live-bottom/10adduser [deleted file]
scripts/live-bottom/12fstab [deleted file]
scripts/live-bottom/13swap [deleted file]
scripts/live-bottom/14locales [deleted file]
scripts/live-bottom/15autologin [deleted file]
scripts/live-bottom/19keyboard [deleted file]
scripts/live-bottom/20xconfig [deleted file]
scripts/live-bottom/21xvidemode [deleted file]
scripts/live-bottom/22gnome_panel_data [deleted file]
scripts/live-bottom/22screensaver [deleted file]
scripts/live-bottom/23etc_modules [deleted file]
scripts/live-bottom/23networking [deleted file]
scripts/live-bottom/24preseed [deleted file]
scripts/live-bottom/25configure_init [deleted file]
scripts/live-bottom/30accessibility [deleted file]
scripts/live-bottom/31disable_update_notifier [deleted file]
scripts/live-bottom/32disable_hibernation [deleted file]
scripts/live-bottom/33enable_apport_crashes [deleted file]
scripts/live-bottom/34disable_kpersonalizer [deleted file]
scripts/live-bottom/35fix_language_selector [deleted file]
scripts/live-bottom/36disable_trackerd [deleted file]
scripts/live-bottom/38disable_restricted_manager [deleted file]
scripts/live-bottom/41apt_cdrom [deleted file]
scripts/live-bottom/42disable_apparmor [deleted file]
scripts/live-bottom/99hook [deleted file]

index a012193..bfffa85 100644 (file)
@@ -1,9 +1,13 @@
-live-initramfs (1.136.2-2~grml.01) unstable; urgency=low
+live-initramfs (1.136.3-2~grml.00) unstable; urgency=low
 
 
+  * Sync with Debian [1.136.3-1] once more (no new
+    changes except for my own patch which has been applied).
   * Adjust path of rsync (use /bin).
   * Drop duplicate NOFSTAB from /etc/live.conf.
   * Adjust path of rsync (use /bin).
   * Drop duplicate NOFSTAB from /etc/live.conf.
+  * Get rid of all scripts in scripts/live-bottom/ except
+    for 05mountpoints which is necessary to get a working setup.
 
 
- -- Michael Prokop <mika@grml.org>  Sun, 20 Jul 2008 16:54:49 +0200
+ -- Michael Prokop <mika@grml.org>  Sun, 20 Jul 2008 19:18:27 +0200
 
 live-initramfs (1.136.2-2~grml.00) unstable; urgency=low
 
 
 live-initramfs (1.136.2-2~grml.00) unstable; urgency=low
 
diff --git a/scripts/live-bottom/01integrity_check b/scripts/live-bottom/01integrity_check
deleted file mode 100755 (executable)
index e4710f3..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs script
-
-if grep -qs integrity-check /proc/cmdline
-then
-       cd /live/image
-       md5sum -c md5sum.txt < /dev/tty8 > /dev/tty8
-       reboot
-       while :; do sleep 60; done
-fi
diff --git a/scripts/live-bottom/02etc_live_conf b/scripts/live-bottom/02etc_live_conf
deleted file mode 100755 (executable)
index 1623de8..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-. /scripts/live-functions
-
-log_begin_msg "Copying config on real root fs..."
-
-# live-initramfs script
-
-if [ -f /etc/live.conf ]
-then
-       if [ ! -z "${LIVECONF}" ]
-       then
-               # Updating live.conf
-               sed -i -e 's/\(USERNAME="\).*"/\1'"${USERNAME}"'"/g' \
-                      -e 's/\(USERFULLNAME="\).*"/\1'"${USERFULLNAME}"'"/g' \
-                      -e 's/\(HOSTNAME="\).*"/\1'"${HOSTNAME}"'"/g' \
-               /etc/live.conf
-       fi
-
-       cp -p /etc/live.conf /root/etc/live.conf
-else
-
-cat > /root/etc/live.conf << EOF
-export USERNAME="${USERNAME}"
-export USERFULLNAME="${USERFULLNAME}"
-export HOSTNAME="${HOSTNAME}"
-EOF
-
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/02timezone b/scripts/live-bottom/02timezone
deleted file mode 100755 (executable)
index e4e91ff..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOTIMEZONE}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Setting timezone..."
-
-# live-initramfs script
-
-if [ -n "${TIMEZONE}" ]
-then
-       area="$(echo ${TIMEZONE} | cut -f1 -d '/')"
-       zone="$(echo ${TIMEZONE} | cut -f2 -d '/')"
-
-chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
-set tzdata/Areas ${area}
-set tzdata/Zones/${area} ${zone}
-EOF
-
-       cp -f /root/usr/share/zoneinfo/${area}/${zone} /root/etc/localtime
-else
-
-chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
-set tzdata/Areas Etc
-set tzdata/Zones/Etc UTC
-EOF
-
-       cp -f /root/usr/share/zoneinfo/UTC /root/etc/localtime
-fi
-
-if [ -n "${UTC}" ]
-then
-       sed -i -e "s/UTC=.*/UTC=${UTC}/" /root/etc/default/rcS
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/10adduser b/scripts/live-bottom/10adduser
deleted file mode 100755 (executable)
index 1a80e26..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOUSER}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Adding live session user..."
-
-# live-initramfs script
-
-user_crypted="8Ab05sVQ4LLps" # as in $(echo "live" | mkpasswd -s)
-
-# U6aMy0wojraho is just a blank password
-chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
-set passwd/make-user true
-set passwd/root-password-crypted *
-set passwd/user-password-crypted ${user_crypted}
-set passwd/user-fullname ${USERFULLNAME}
-set passwd/username ${USERNAME}
-set passwd/user-uid 999
-EOF
-
-chroot /root /usr/bin/env -i HOME="/root" \
-       TERM="${TERM}" PATH="/usr/sbin:/usr/bin:/sbin:/bin" \
-       /usr/lib/user-setup/user-setup-apply > /dev/null
-
-# Clear out debconf database again to avoid confusing ubiquity later.
-chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
-set passwd/make-user
-set passwd/root-password-crypted
-set passwd/user-password-crypted
-set passwd/user-fullname
-set passwd/username
-set passwd/user-uid
-EOF
-
-if [ -z "${NOSUDO}" ]
-then
-       if ! grep -q "${USERNAME}" /root/etc/sudoers
-       then
-               echo "${USERNAME}  ALL=(ALL) NOPASSWD: ALL" >> /root/etc/sudoers
-
-               chroot /root sudo -u "${USERNAME}" sh -c "echo 'SU_TO_ROOT_SU=sudo' >> /home/${USERNAME}/.su-to-rootrc"
-               chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/gksu/sudo-mode true
-               chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/gksu/display-no-pass-info false
-
-chroot /root sudo -u "${USERNAME}" sh -c "umask 0077 && mkdir -p /home/${USERNAME}/.kde/share/config && cat > /home/${USERNAME}/.kde/share/config/kdesurc" << EOF
-[super-user-command]
-super-user-command=sudo
-EOF
-
-               if [ -f /root/usr/share/apps/konsole/sumc.desktop ]
-               then
-                       chroot /root sudo -u "${USERNAME}" sh -c "umask 0077 && mkdir -p /home/${USERNAME}/.kde/share/apps/konsole && sed -e's/Exec=su.*$/Exec=sudo mc -c/' /usr/share/apps/konsole/sumc.desktop > /home/${USERNAME}/.kde/share/apps/konsole/sumc.desktop"
-               fi
-
-               if [ -f /root/usr/share/apps/konsole/su.desktop ]
-               then
-                       chroot /root sudo -u "${USERNAME}" sh -c "umask 0077 && mkdir -p /home/${USERNAME}/.kde/share/apps/konsole && sed -e's/Exec=su.*$/Exec=sudo -i/' /usr/share/apps/konsole/su.desktop > /home/${USERNAME}/.kde/share/apps/konsole/su.desktop"
-               fi
-       fi
-fi
-
-if [ -L /root/home/${USERNAME}/Examples ]
-then
-       chroot /root install -o ${USERNAME} -g ${USERNAME} -d /home/${USERNAME}/Desktop/
-       mv /root/home/${USERNAME}/Examples /root/home/${USERNAME}/Desktop/
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/12fstab b/scripts/live-bottom/12fstab
deleted file mode 100755 (executable)
index 936eeae..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-FSTAB=/root/etc/fstab
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-. /scripts/live-functions
-
-if [ -n "${NOFSTAB}" ]
-then
-       exit 0
-fi
-
-log_begin_msg "Configuring fstab..."
-
-# live-initramfs script
-
-cat >> ${FSTAB} << EOF
-# /etc/fstab: static file system information.
-#
-# <file system> <mount point>   <type>  <options>       <dump>  <pass>
-
-${UNIONTYPE} / ${UNIONTYPE} rw 0 0
-tmpfs /tmp tmpfs nosuid,nodev 0 0
-EOF
-
-# disabled for now
-#rm -f /root/etc/rcS.d/S*checkroot.sh
-
-if [ "${NOFASTBOOT}" != "Yes" ]
-then
-       touch root/fastboot
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/13swap b/scripts/live-bottom/13swap
deleted file mode 100755 (executable)
index 303fbbb..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOSWAP}" ] || [ -n "${NOFSTAB}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Setting up swap..."
-
-# live-initramfs script
-
-FSTAB=/root/etc/fstab
-devices=""
-
-for device in /dev/[hs]d[a-z][0-9]*
-do
-       if ! [ -b "${device}" ]
-       then
-               continue
-       fi
-
-       /lib/udev/vol_id ${device%%[0-9]*} | grep -q "^ID_FS_USAGE=raid" && continue
-
-       magic=$(/bin/dd if="${device}" bs=4086 skip=1 count=1 2>/dev/null | /bin/dd bs=10 count=1 2>/dev/null) || continue
-
-       if [ "${magic}" = "SWAPSPACE2" -o "${magic}" = "SWAP-SPACE" ]
-       then
-               #log "Found ${device}"
-               devices="${devices} ${device}"
-       fi
-done
-
-for device in ${devices}
-do
-
-cat >> ${FSTAB} << EOF
-${device} swap swap defaults 0 0
-EOF
-
-done
-
-log_end_msg
diff --git a/scripts/live-bottom/14locales b/scripts/live-bottom/14locales
deleted file mode 100755 (executable)
index 94e3cf2..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOLOCALES}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Setting up locales..."
-
-# live-initramfs script
-
-if [ -e /root/etc/default/locale ]
-then
-       grep_file=/root/etc/default/locale
-elif [ -e /root/etc/environment ]
-then
-       # Old locales policy
-       grep_file=/root/etc/environment
-fi
-
-if [ -n "${grep_file}" ]
-then
-       # use rootfs configured locale
-       locale=$(grep -s 'LANG=' ${grep_file} | sed s/'LANG='// | tr -d '"' )
-fi
-
-if [ -n "${LOCALE}" ]
-then
-       locale="${LOCALE}"
-       set_locale="true"
-fi
-
-if [ -z "${locale}" ]
-then
-       # Set a default one
-       locale=en_US.UTF-8
-       set_locale="true"
-fi
-
-if [ "${set_locale}" ]
-then
-       if echo "${locale}" | grep -sqE '^[[:lower:]]{2}$'
-       then
-               # input is like "locale=it", so we will convert and setup also the keyboard if not already set
-               if [ -z "${KBD}" ]
-               then
-                       # FIXME: look if this keyb is supported
-                       KBD="${locale}"
-                       really_export KBD
-               fi
-
-               uploc=$(echo "${locale}" | tr '[a-z]' '[A-Z]')
-               locale="${locale}_${uploc}.UTF-8"
-       fi
-
-       LANG=$(grep "^${locale}" /root/usr/share/i18n/SUPPORTED | grep UTF-8 | sed -e 's, .*,,' -e q)
-
-       language="${LANG%%.UTF-8*}"
-       if [ -d /root/etc/default/kdm.d/ ]
-       then
-
-cat > /root/etc/default/kdm.d/live-autologin << EOF
-LANGUAGE=${language}
-EOF
-
-       elif [ -f /root/etc/kde3/kdm/kdmrc ]
-       then
-               sed -i -r -e "s/#Language=.*/Language=${language}/" \
-                       /root/etc/kde3/kdm/kdmrc
-       fi
-
-       if [ -z "${LANG}" ]
-       then
-               log_warning_msg "Locale ${locale} is unsupported."
-               locale="en_US.UTF-8"
-               LANG="${locale}"
-       fi
-
-       really_export LANG
-
-       printf 'LANG="%s"\n' "${LANG}" >> /root/etc/default/locale
-       printf 'LANG="%s"\n' "${LANG}" >> /root/etc/environment
-       printf '%s UTF-8\n' "${LANG}" > /root/etc/locale.gen
-       chroot /root /usr/sbin/locale-gen
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/15autologin b/scripts/live-bottom/15autologin
deleted file mode 100755 (executable)
index 2c880b7..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-. /scripts/live-functions
-
-log_begin_msg "Setting up automatic login..."
-
-# live-initramfs script
-
-if [ -n "${NOXAUTOLOGIN}" ]
-then
-       exit 0
-fi
-
-# chroot needed to handle symlinks correctly
-if chroot /root [ -f /etc/gdm/gdm-cdd.conf ]
-then
-       GDMCONF=/etc/gdm/gdm-cdd.conf
-else
-       GDMCONF=/etc/gdm/gdm.conf
-fi
-
-# chroot needed to handle symlinks correctly
-if chroot /root [ -f ${GDMCONF} ]
-then
-       # true hack ! -- nohar
-       chroot /root cp /usr/share/gdm/defaults.conf /etc/gdm/gdm.conf
-
-       # Configure GDM autologin
-       chroot /root \
-       sed -i -e "s/^AutomaticLoginEnable=.*\$/AutomaticLoginEnable=true/" \
-              -e "s/^AutomaticLogin=.*\$/AutomaticLogin=${USERNAME}/" \
-              -e "s/^TimedLoginEnable=.*\$/TimedLoginEnable=true/" \
-              -e "s/^TimedLogin=.*\$/TimedLogin=${USERNAME}/" \
-              -e "s/^TimedLoginDelay=.*\$/TimedLoginDelay=10/" \
-       ${GDMCONF}
-fi
-
-if [ -d /root/etc/default/kdm.d/ ]
-then
-
-cat >> /root/etc/default/kdm.d/live-autologin << EOF
-AUTOLOGINUSER=${USERNAME}
-AUTOLOGINAGAIN=true
-AUTOLOGINDELAY=0
-EOF
-
-elif [ -f /root/etc/kde3/kdm/kdmrc ]
-then
-       # Configure KDM autologin
-       sed -i -r -e "s/^#?AutoLoginEnable=.*\$/AutoLoginEnable=true/" \
-                 -e "s/^#?AutoLoginUser=.*\$/AutoLoginUser=${USERNAME}/" \
-                 -e "s/^#?AutoReLogin=.*\$/AutoReLogin=true/" \
-       /root/etc/kde3/kdm/kdmrc
-elif [ -f /root/usr/lib/kde4/etc/kde4/kdm/kdmrc ]
-then
-       # Configure KDM-KDE4 autologin
-       sed -i -r -e "s/^#?AutoLoginEnable=.*\$/AutoLoginEnable=true/" \
-                 -e "s/^#?AutoLoginUser=.*\$/AutoLoginUser=$USERNAME/" \
-                 -e "s/^#?AutoReLogin=.*\$/AutoReLogin=true/" \
-       /root/usr/lib/kde4/etc/kde4/kdm/kdmrc
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/19keyboard b/scripts/live-bottom/19keyboard
deleted file mode 100755 (executable)
index 784aa05..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOCONSOLEKEYBOARD}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Setting up console keyboard..."
-
-# live-initramfs script
-
-kbd=
-cslayout=
-csvariant=
-csmodel=
-
-# commandline
-if [ -n "${KBD}" ]
-then
-       kbd="${KBD}"
-else
-       kbd=us
-fi
-
-really_export kbd
-
-if [ -n "${KLAYOUT}" ]
-then
-       cslayout="${KLAYOUT}"
-fi
-
-if [ -n "${KVARIANT}" ]
-then
-       csvariant="${KVARIANT}"
-fi
-
-if [ -n "${KMODEL}" ]
-then
-       csmodel="${KMODEL}"
-fi
-
-if [ -x /root/bin/setupcon ] && [ -f /root/etc/default/console-setup ]
-then
-       if [ "${cslayout}" ]
-       then
-               chroot /root sed -i "s/^XKBLAYOUT=.*/XKBLAYOUT=\"${cslayout}\"/" \
-               /etc/default/console-setup
-
-               if [ "${csvariant}" ]
-               then
-                       chroot /root sed -i "s/^XKBVARIANT=.*/XKBVARIANT=\"${csvariant}\"/" \
-                       /etc/default/console-setup
-               else
-                       live-preseed /root console-setup/variantcode '' false
-               fi
-
-               if [ "${csmodel}" ]
-               then
-                       chroot /root sed -i "s/^XKBMODEL=.*/XKBMODEL=\"${csmodel}\"/" \
-                       /etc/default/console-setup
-               else
-                       live-preseed /root console-setup/modelcode '' false
-               fi
-       else
-               live-preseed /root console-setup/layoutcode '' false
-               live-preseed /root console-setup/variantcode '' false
-               live-preseed /root console-setup/modelcode '' false
-       fi
-
-       sed -i 's/CONSOLE_SCREEN=$/CONSOLE_SCREEN=setupcon/; t END; b; : END; n; b END' /root/etc/init.d/usplash
-else
-       chroot /root /usr/sbin/install-keymap ${kbd}
-       live-preseed /root debian-installer/keymap "${kbd}"
-       live-preseed /root kbd-chooser/method "${kbd}"
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/20xconfig b/scripts/live-bottom/20xconfig
deleted file mode 100755 (executable)
index 8886af8..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOXAUTOCONFIG}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Configuring X..."
-
-# live-initramfs script
-
-if [ "${TERM_TYPE}" = "serial" ]
-then
-       # Don't bother trying to configure or start X on a serial console
-       rm -f /root/etc/rc?.d/S??[gkx]dm
-       exit 0
-fi
-
-if [ -n "${TEXTONLY}" ]
-then
-       exit 0
-fi
-
-locale=en_US.UTF-8
-
-mount -n -o bind /sys /root/sys
-mount -n -o bind /proc /root/proc
-mount -n -o bind /dev /root/dev
-
-if [ -n "${XDEBCONF}" -a -x /root/usr/sbin/xdebconfigurator ]
-then
-       # xdebconfigurator
-       chroot /root /usr/sbin/xdebconfigurator
-fi
-
-if [ -n "${KOPTIONS}" ]
-then
-       setoptions="set xserver-xorg/config/inputdevice/keyboard/options ${KOPTIONS}"
-fi
-
-if [ -n "${KVARIANT}" ]
-then
-       setvariant="set xserver-xorg/config/inputdevice/keyboard/variant ${KVARIANT}"
-fi
-
-if [ -n "${KMODEL}" ]
-then
-       setmodel="set xserver-xorg/config/inputdevice/keyboard/model ${KMODEL}"
-fi
-
-chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
-set xserver-xorg/config/inputdevice/keyboard/layout ${kbd}
-${setvariant}
-${setmodel}
-${setoptions}
-EOF
-
-DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 live-reconfigure /root xserver-xorg
-umount /root/sys
-umount /root/proc
-umount /root/dev
-
-log_end_msg
diff --git a/scripts/live-bottom/21xvidemode b/scripts/live-bottom/21xvidemode
deleted file mode 100755 (executable)
index a11dc77..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOXAUTOCONFIG}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Configuring X kludges..."
-
-# live-initramfs script
-
-if [ -n "$XVIDEOMODE" ]
-then
-       mount -n -o bind /sys /root/sys
-       mount -n -o bind /proc /root/proc
-       mount -n -o bind /dev /root/dev
-
-chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
-set xserver-xorg/config/monitor/mode-list ${XVIDEOMODE}
-set xserver-xorg/config/display/modes ${XVIDEOMODE}
-EOF
-
-       chroot /root dexconf
-
-       umount /root/sys
-       umount /root/proc
-       umount /root/dev
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/22gnome_panel_data b/scripts/live-bottom/22gnome_panel_data
deleted file mode 100755 (executable)
index 8322c9c..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOGNOMEPANEL}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Configuring gnome-panel-data..."
-
-# live-initramfs script
-
-if [ -x /root/usr/sbin/laptop-detect ]
-then
-       if chroot /root laptop-detect
-       then
-               live-reconfigure /root gnome-panel-data
-       fi
-fi
-
-panel_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnome-panel-data 2>/dev/null) || panel_version=""
-
-if [ -n "${panel_version}" ]
-then
-       chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/panel/global/disable_lock_screen true
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/22screensaver b/scripts/live-bottom/22screensaver
deleted file mode 100755 (executable)
index 967d8c9..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOXSCREENSAVER}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Configuring screensaver..."
-
-# live-initramfs script
-
-gnome_screensaver_version=$(chroot /root dpkg-query -W --showformat='${Version}' gnome-screensaver 2>/dev/null) || gnome_screensaver_version=""
-
-if [ -n "${gnome_screensaver_version}" ]
-then
-       # Support legacy gconf value
-       chroot /root sudo -u "${USERNAME}" gconftool-2 -t bool -s /apps/gnome-screensaver/lock false
-       chroot /root sudo -u "${USERNAME}" gconftool-2 -t bool -s /apps/gnome-screensaver/lock_enabled false
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/23etc_modules b/scripts/live-bottom/23etc_modules
deleted file mode 100755 (executable)
index 4cc300a..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-. /scripts/live-functions
-
-log_begin_msg "Preconfiguring /etc/modules..."
-
-# live-initramfs script
-
-# load the right modules
-case "${DPKG_ARCH}" in
-       powerpc|ppc64)
-               echo snd_powermac >> /root/etc/modules
-               ;;
-esac
-
-log_end_msg
diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking
deleted file mode 100755 (executable)
index 5e9afe9..0000000
+++ /dev/null
@@ -1,157 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NONETWORKING}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Preconfiguring networking..."
-
-# live-initramfs script
-
-IFFILE="/root/etc/network/interfaces"
-
-if [ "${STATICIP}" = "frommedia" -a -e  "${IFFILE}" ]
-then
-       # will use existent /etc/network/interfaces
-       log_end_msg
-       exit 0
-fi
-
-cat > "${IFFILE}" << EOF
-auto lo
-iface lo inet loopback
-
-EOF
-
-if [ -x /sbin/udevadm ]
-then
-       # lenny
-       udevadm trigger
-       udevadm settle
-else
-       # etch
-       udevtrigger
-       udevsettle
-fi
-
-if [ -z "${NETBOOT}" -a -n "${STATICIP}" -a "${STATICIP}" != "frommedia" ]
-then
-       parsed=$(echo "${STATICIP}" | sed -e 's/:/ /g')
-
-       for ifline in ${parsed}
-       do
-               ifname="$(echo ${ifline} | cut -f1 -d ',')"
-               ifaddress="$(echo ${ifline} | cut -f2 -d ',')"
-               ifnetmask="$(echo ${ifline} | cut -f3 -d ',')"
-               ifgateway="$(echo ${ifline} | cut -f4 -d ',')"
-
-cat >> "${IFFILE}" << EOF
-auto ${ifname}
-iface ${ifname} inet static
-    address ${ifaddress}
-    netmask ${ifnetmask}
-    gateway ${ifgateway}
-
-EOF
-
-       done
-else
-       if [ -z "${NETBOOT}" ]
-       then
-               # default, dhcp assigned
-               method="dhcp"
-       else
-               # make sure that the preconfigured interface would not get reassigned by dhcp
-               # on startup by ifup script - otherwise our root fs might be disconnected!
-               method="manual"
-       fi
-
-       # iterate the physical interfaces and add them to the interfaces list
-       if [ "${method}" != dhcp ] || [ ! -x /root/usr/sbin/NetworkManager ]
-       then
-               for interface in /sys/class/net/eth* /sys/class/net/ath* /sys/class/net/wlan*
-               do
-                       [ -e ${interface} ] || continue
-                       i="$(basename ${interface})"
-
-cat >> "${IFFILE}" << EOF
-auto ${i}
-iface ${i} inet ${method}
-
-EOF
-
-               done
-       fi
-
-       if [ ! -f /root/etc/resolv.conf ] || [ -z "$(cat /root/etc/resolv.conf)" ]
-       then
-               if [ -f /netboot.config ]
-               then
-                       # create a resolv.conf if it is not present or empty
-                       cp /netboot.config /root/var/log/netboot.config
-
-                       rc_search=$(cat netboot.config | awk '/domain/{print $3}')
-                       rc_server0=$(cat netboot.config | awk '/dns0/{print $5}')
-                       rc_server1=$(cat netboot.config | awk '/dns0/{print $8}')
-                       rc_server0="nameserver ${rc_server0}"
-
-                       if [ "${rc_server1}" = "0.0.0.0" ]
-                       then
-                               rc_server1=""
-                       else
-                               rc_server1="nameserver ${rc_server1}"
-                       fi
-
-cat > /root/etc/resolv.conf << EOF
-# /etc/resolv.conf
-# Autogenerated by live-initramfs
-search ${rc_search}
-domain ${rc_search}
-${rc_server0}
-${rc_server1}
-EOF
-
-                       cat /root/etc/resolv.conf >> /root/var/log/netboot.config
-               fi
-       fi
-fi
-
-#if [ ! -x /root/usr/sbin/NetworkManager ]
-#then
-#      for i in eth0 eth1 eth2 ath0 wlan0
-#      do
-#              grep -q "iface ${i}" ${IFFILE} && continue
-#
-#cat >> "${IFFILE}" << EOF
-#auto ${i}
-#iface ${i} inet dhcp
-#
-#EOF
-#
-#      done
-#fi
-
-log_end_msg
diff --git a/scripts/live-bottom/24preseed b/scripts/live-bottom/24preseed
deleted file mode 100755 (executable)
index a8f5a46..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOPRESEED}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Loading preseed file..."
-
-# live-initramfs script
-
-if [ -e /preseed.cfg ]
-then
-       chroot /root debconf-set-selections < /preseed.cfg
-fi
-
-if [ -f "/root/${LOCATION}" ]
-then
-       chroot /root debconf-set-selections < "/root/${LOCATION}"
-fi
-
-if [ -n "${PRESEEDS}" ]
-then
-       for preseed in ${PRESEEDS}
-       do
-               question="${preseed%%=*}"
-               value="${preseed#*=}"
-
-               live-preseed /root "${question}" "${value}"
-       done
-fi
-
-reply="$(echo "GET preseed/early_command" | chroot /root debconf-communicate -fnoninteractive live-initramfs)"
-
-if [ "${reply#0 }" != "${reply}" ]
-then
-       reply="${reply#0 }"
-       sh -c "${reply}"
-fi
-
-# Clear out debconf database backup files to save memory.
-rm -f /root/var/cache/debconf/*.dat-old
-
-log_end_msg
-
-exit 0
diff --git a/scripts/live-bottom/25configure_init b/scripts/live-bottom/25configure_init
deleted file mode 100755 (executable)
index 6ca1775..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-. /scripts/live-functions
-
-log_begin_msg "Setting up init..."
-
-# live-initramfs script
-
-# Arrange for shells on virtual consoles, rather than login prompts
-
-if [ -z "${NOAUTOLOGIN}" ]
-then
-       if [ -n "${USERNAME}" ]
-       then
-               if [ ! -z "${LIVE_GETTY}" ]
-               then
-                       if echo "${DEFCONSOLE}" | grep -qs ttyS
-                       then
-                               # AUTOMATIC SERIAL CONSOLE #
-                               PORT=$(echo "${DEFCONSOLE}" | \
-                                       sed -e 's%,.*%%')
-                               SPEED=$(echo "${DEFCONSOLE}" | \
-                                       sed -e 's%ttyS[0-9]\+,%%' \
-                                       -e's%\([0-9]\+\).*%\1%')
-
-                               if ! ( sed -n -e'/^[^#]/p' /root/etc/inittab | grep -qs ":respawn:/sbin/getty.*${PORT}" )
-                               then
-                                       IDs="A B C D E F G H I J K L M N O P Q R S T Q U V V X Y Z 0 1 2 3 4 5 6 7 8 9"
-
-                                       for ID1 in ${IDs}
-                                       do
-                                               for ID2 in ${IDs}
-                                               do
-                                                       ID="${ID1}${ID2}"
-
-                                                       if ! grep "^${ID}:" /etc/inittab
-                                                       then
-                                                               #make sure it is not already in use
-                                                               break 2
-                                                       fi
-                                               done
-                                       done
-
-                                       echo "${ID}:2345:respawn:/sbin/live-getty -L ${PORT} ${SPEED} vt100" >> /root/etc/inittab
-                               fi
-                       fi
-
-                       if [ -f /root/etc/inittab ]
-                       then
-                               sed -i -e'/^[^#]/s%respawn:/sbin/getty%respawn:/sbin/live-getty%' /root/etc/inittab
-                       fi
-               else
-                       if [ -f /root/etc/inittab ]
-                       then
-                               sed -i -e "s|^\([^:]*:[^:]*:[^:]*\):.*getty.*\<\(tty[0-9]*\).*$|\1:/bin/login -f ${USERNAME} </dev/\2 >/dev/\2 2>\&1|" /root/etc/inittab
-                       fi
-
-                       if [ "/root/etc/event.d/tty*" != "$(echo /root/etc/event.d/tty*)" ]
-                       then
-                               for f in /root/etc/event.d/tty*
-                               do
-                                       sed -i -e "s|^respawn.*|respawn /bin/login -f ${USERNAME} </dev/$(basename ${f}) > /dev/$(basename ${f}) 2>\&1|" ${f}
-                               done
-                       fi
-               fi
-
-               # Since we use autologin, lastlog doesn't make sense on the console.
-               sed -i '/^[^#].*pam_lastlog\.so/s/^/# /' /root/etc/pam.d/login
-       fi
-fi
-
-# do not try to remove files if using file-rc
-if [ -d /etc/rc0.d ]
-then
-       # This has the nice side effect of the cron.{daily,weekly,monthly} jobs in
-       # /etc/crontab remaining disabled, yet also not run by anacron
-       if [ -x /root/usr/sbin/anacron ]
-       then
-               chroot /root dpkg-divert --add --rename --quiet /usr/sbin/anacron
-               ln -s /bin/true /usr/sbin/anacron
-       fi
-
-       # No point, really
-       rm -f /root/etc/rc?.d/[SK]??postfix
-
-       # Avoid clobbering the user's clock
-       rm -f /root/etc/rc?.d/K??hwclock.sh
-fi
-
-# Disable readahead since it doesn't play well with squashfs + unionfs
-# use chmod instead of mv to not trigger unionfs bugs.
-if [ -e /root/sbin/readahead-list ]
-then
-       chmod -x /root/sbin/readahead-list
-fi
-
-log_end_msg
-
-exit 0
diff --git a/scripts/live-bottom/30accessibility b/scripts/live-bottom/30accessibility
deleted file mode 100755 (executable)
index 6bfcc45..0000000
+++ /dev/null
@@ -1,138 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOACCESSIBILITY}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Configuring accessibility options..."
-
-# live-initramfs script
-
-gconf_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gconf2 2>/dev/null) || gconf_version=""
-
-gct ()
-{
-       if [ "${gconf_version}" ]
-       then
-               chroot /root sudo -u "${USERNAME}" gconftool-2 "${@}"
-       fi
-}
-
-case ${ACCESS} in
-       access=v1)
-               # Lesser Visual Impairment
-               gct -s -t string /desktop/gnome/interface/gtk_theme HighContrastLargePrint
-               gct -s -t string /desktop/gnome/interface/icon_theme HighContrast
-               gct -s -t string /desktop/gnome/interface/monospace_font_name "monospace 18"
-               gct -s -t string /desktop/gnome/interface/font_name "sans 18"
-               gct -s -t string /apps/metacity/general/theme Atlanta
-               gct -s -t string /desktop/gnome/background/picture_filename ""
-               gct -s -t string /desktop/gnome/background/picture_options none
-               gct -s -t string /desktop/gnome/background/primary_color \#666666
-               gct -s -t string /desktop/gnome/background/secondary_color \#7F7F7F
-               gct -s -t string /desktop/gnome/background/color_shading_type solid
-               gct -s -t int /desktop/gnome/peripherals/mouse/cursor_size 48
-               gct -s -t string /desktop/gnome/peripherals/mouse/cursor_theme whiteglass
-               ;;
-
-       access=v2)
-               # Moderate Visual Impairment
-               gct -s -t bool /desktop/gnome/interface/accessibility true
-               gct -s -t bool /desktop/gnome/applications/at/visual/startup true
-               gct -s -t bool /apps/gksu/disable-grab true
-
-               if type orca > /dev/null 2>&1
-               then
-                       mkdir -p /root/home/${USERNAME}/.orca
-                       echo "import orca.settings" >> /root/home/${USERNAME}/.orca/user-settings.py
-                       echo "orca.settings.enableSpeech = False" >> /root/home/${USERNAME}/.orca/user-settings.py
-                       echo "orca.settings.enableMagnifier = True" >> /root/home/${USERNAME}/.orca/user-settings.py
-                       chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.orca
-               fi
-               ;;
-
-       access=v3)
-               # Blindness
-               # Disabled for now, until we know eSpeak works.
-               #gct -s -t bool /desktop/gnome/sound/enable_esd false
-               gct -s -t bool /desktop/gnome/interface/accessibility true
-               gct -s -t bool /desktop/gnome/applications/at/visual/startup true
-               gct -s -t bool /apps/gksu/disable-grab true
-               gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity
-               ;;
-
-       braille=ask)
-               # Braille
-               gct -s -t bool /desktop/gnome/interface/accessibility true
-               gct -s -t bool /desktop/gnome/applications/at/visual/startup true
-               gct -s -t bool /apps/gksu/disable-grab true
-               gct -s -t string /desktop/gnome/applications/window_manager/default /usr/bin/metacity
-
-               if type orca > /dev/null 2>&1
-               then
-                       mkdir -p /root/home/${USERNAME}/.orca
-                       echo "import orca.settings" >> /root/home/${USERNAME}/.orca/user-settings.py
-                       echo "orca.settings.enableSpeech = False" >> /root/home/${USERNAME}/.orca/user-settings.py
-                       echo "orca.settings.enableBraille = True" >> /root/home/${USERNAME}/.orca/user-settings.py
-                       chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.orca
-               fi
-               ;;
-
-       access=m1)
-               # Minor Motor Difficulties
-               gct -s -t bool /desktop/gnome/accessibility/keyboard/enable true
-               gct -s -t bool /desktop/gnome/accessibility/keyboard/mousekeys_enable true
-               gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_enable true
-               gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_modifier_beep true
-               gct -s -t bool /desktop/accessibility/gnome/keyboard/stickykeys_two_key_off false
-               gct -s -t bool /desktop/gnome/peripherals/keyboard/repeat true
-               gct -s -t int /desktop/gnome/peripherals/keyboard/delay 700
-               gct -s -t int /desktop/gnome/peripherals/keyboard/rate 10
-               gct -s -t bool /apps/gksu/disable-grab true
-
-               if [ -e /root/etc/xdg/xfce4/mcs_settings/keyboard.xml ]
-               then
-                       sed -i 's/0/1/' /root/etc/xdg/xfce4/mcs_settings/keyboard.xml
-               fi
-               ;;
-
-       access=m2)
-               # Motor Difficulties - pointing devices
-               gct -s -t bool /desktop/gnome/accessibility/keyboard/enable true
-               gct -s -t bool /desktop/gnome/interface/accessibility true
-               gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_enable true
-               gct -s -t bool /desktop/gnome/accessibility/keyboard/stickykeys_modifier_beep false
-               gct -s -t bool /desktop/accessibility/gnome/keyboard/stickykeys_two_key_off false
-               gct -s -t list --list-type=string /desktop/gnome/accessibility/startup/exec_ats [onboard]
-
-               if [ -e /root/etc/xdg/xfce4/mcs_settings/keyboard.xml ]
-               then
-                       sed -i '/Sticky/ s/0/1/' /root/etc/xdg/xfce4/mcs_settings/keyboard.xml
-               fi
-               ;;
-esac
-
-log_end_msg
diff --git a/scripts/live-bottom/31disable_update_notifier b/scripts/live-bottom/31disable_update_notifier
deleted file mode 100755 (executable)
index 7a6fef8..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOUPDATENOTIFIER}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Disabling update-notifier..."
-
-# live-initramfs script
-
-# For GNOME, we divert away apt-check to avoid a regular 'apt-get update'
-# equivalent in the live session. We want to run update-notifier for crash
-# report handling.
-chroot /root dpkg-divert --add --rename --quiet \
-       /usr/lib/update-notifier/apt-check
-
-ln -s /bin/true /root/usr/lib/update-notifier/apt-check
-
-# For KDE, adept_notifier's only useful function at the moment is an
-# 'apt-get update' equivalent, so we disable it entirely.
-rm -f /root/usr/share/autostart/adept_notifier_auto.desktop
-
-log_end_msg
diff --git a/scripts/live-bottom/32disable_hibernation b/scripts/live-bottom/32disable_hibernation
deleted file mode 100755 (executable)
index ec0e03a..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOPOWERMANAGEMENT}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Configuring power management..."
-
-# live-initramfs script
-
-gpm_version=$(chroot /root /usr/bin/dpkg-query -W --showformat='${Version}' gnome-power-manager 2>/dev/null) || panel_version=""
-
-if [ -n "${gpm_version}" ]
-then
-       #live-reconfigure /root gnome-power-manager
-       # Gnome < 2.20
-       chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/gnome-power-manager/can_hibernate false
-       # Gnome >= 2.20
-       chroot /root sudo -u "${USERNAME}" gconftool-2 -s -t bool /apps/gnome-power-manager/general/can_hibernate false
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/33enable_apport_crashes b/scripts/live-bottom/33enable_apport_crashes
deleted file mode 100755 (executable)
index f300652..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOPROGRAMCRASHES}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Enabling notifications about program crashes..."
-
-# live-initramfs script
-
-update_notifier_version=$(chroot /root dpkg-query -W --showformat='${Version}' update-notifier 2>/dev/null) || update_notifier_version=""
-
-if [ -n "${update_notifier_version}" ]
-then
-       chroot /root sudo -u "${USERNAME}" gconftool-2 -t bool -s /apps/update-notifier/show_apport_crashes true
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/34disable_kpersonalizer b/scripts/live-bottom/34disable_kpersonalizer
deleted file mode 100755 (executable)
index e19cf2a..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOKPERSONALIZER}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Disabling kpersonalizer..."
-
-# live-initramfs script
-
-if chroot /root /usr/bin/which kpersonalizer >/dev/null
-then
-       # Disable first-login wizard for KDE
-       if [ ! -f /root/etc/kde3/kpersonalizerrc ]
-       then
-
-cat > /root/etc/kde3/kpersonalizerrc << EOF
-[General]
-FirstLogin=false
-EOF
-
-       else
-               echo "I'm not smart enough to disable kpersonalizer startup" >&2
-               echo "Because kpersonalizerrc already exists" >&2
-       fi
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/35fix_language_selector b/scripts/live-bottom/35fix_language_selector
deleted file mode 100755 (executable)
index 70495c4..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOLANGUAGESELECTOR}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Fixing language selector..."
-
-# live-initramfs script
-
-if [ -e /root/usr/share/applications/language-selector.desktop ]
-then
-       sed -i '/^Exec/ s|/usr/bin/gnome-language-selector|& -n|' /root/usr/share/applications/language-selector.desktop
-fi
-
-if [ -x /root/usr/bin/fontconfig-voodoo ]
-then
-       chroot /root fontconfig-voodoo --auto --quiet || true
-fi
-
-log_end_msg
diff --git a/scripts/live-bottom/36disable_trackerd b/scripts/live-bottom/36disable_trackerd
deleted file mode 100755 (executable)
index 62ad1df..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOTIMEZONE}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Disabling trackerd..."
-
-# live-initramfs script
-
-rm -f /root/etc/xdg/autostart/tracker-applet.desktop \
-       /root/etc/xdg/autostart/trackerd.desktop \
-       /root/usr/share/autostart/trackerd.desktop
-
-log_end_msg
diff --git a/scripts/live-bottom/38disable_restricted_manager b/scripts/live-bottom/38disable_restricted_manager
deleted file mode 100755 (executable)
index 16a78f3..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-PREREQ=""
-
-. /scripts/live-functions
-
-prereqs()
-{
-       echo "$PREREQ"
-}
-
-case $1 in
-# get pre-requisites
-prereqs)
-       prereqs
-       exit 0
-       ;;
-esac
-
-if [ -n "${NORESTRICTEDMANAGER}" ]
-then
-       exit 0
-fi
-
-log_begin_msg "Disabling restricted-manager..."
-
-rm -f /root/etc/xdg/autostart/restricted-manager.desktop
-rm -f /root/etc/xdg/autostart/restricted-manager-kde.desktop
-
-# Since we disable restricted-manager, there isn't much point generating the
-# fglrx or nvidia modules either. The other restricted modules may still be
-# useful.
-sed -i 's/^DISABLED_MODULES=""/DISABLED_MODULES="fglrx nv"/' \
-       /root/etc/default/linux-restricted-modules-common
-
-log_end_msg
diff --git a/scripts/live-bottom/41apt_cdrom b/scripts/live-bottom/41apt_cdrom
deleted file mode 100755 (executable)
index 63da284..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOAPTCDROM}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Adding APT-CDROM source..."
-
-# live-initramfs script
-
-chroot /root apt-cdrom -m add
-
-log_end_msg
diff --git a/scripts/live-bottom/42disable_apparmor b/scripts/live-bottom/42disable_apparmor
deleted file mode 100755 (executable)
index d325ddb..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -n "${NOAPPARMOR}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Disabling AppArmor (does not work with stacked file systems)..."
-
-# live-initramfs script
-
-chroot /root update-rc.d -f apparmor remove
-
-log_end_msg
diff --git a/scripts/live-bottom/99hook b/scripts/live-bottom/99hook
deleted file mode 100755 (executable)
index a27a96a..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-       echo "${PREREQ}"
-}
-
-case "${1}" in
-       prereqs)
-               prereqs
-               exit 0
-               ;;
-esac
-
-# live-initramfs header
-
-if [ -z "${HOOK}" ]
-then
-       exit 0
-fi
-
-. /scripts/live-functions
-
-log_begin_msg "Executing custom hook script..."
-
-# live-initramfs script
-
-cd /root
-chroot /root wget "${HOOK}"
-
-FILE="$(basename ${HOOK})"
-
-chmod 0755 "${FILE}"
-./"${FILE}"
-rm -f "${FILE}"
-
-log_end_msg