summaryrefslogtreecommitdiff
path: root/scripts/live-bottom
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/live-bottom')
-rwxr-xr-xscripts/live-bottom/01integrity_check19
-rwxr-xr-xscripts/live-bottom/02_timezone32
-rwxr-xr-xscripts/live-bottom/02etc_live_conf30
-rwxr-xr-xscripts/live-bottom/05mountpoints30
-rwxr-xr-xscripts/live-bottom/10adduser33
-rwxr-xr-xscripts/live-bottom/12fstab31
-rwxr-xr-xscripts/live-bottom/13swap33
-rwxr-xr-xscripts/live-bottom/14locales30
-rwxr-xr-xscripts/live-bottom/15autologin33
-rwxr-xr-xscripts/live-bottom/18hostname30
-rwxr-xr-xscripts/live-bottom/19keyboard28
-rwxr-xr-xscripts/live-bottom/20xconfig28
-rwxr-xr-xscripts/live-bottom/21xvidemode28
-rwxr-xr-xscripts/live-bottom/22gnome_panel_data29
-rwxr-xr-xscripts/live-bottom/22screensaver28
-rwxr-xr-xscripts/live-bottom/23etc_modules30
-rwxr-xr-xscripts/live-bottom/23networking33
-rwxr-xr-xscripts/live-bottom/24preseed32
-rwxr-xr-xscripts/live-bottom/25configure_init33
-rwxr-xr-xscripts/live-bottom/30accessibility28
-rwxr-xr-xscripts/live-bottom/31disable_update_notifier28
-rwxr-xr-xscripts/live-bottom/32disable_hibernation27
-rwxr-xr-xscripts/live-bottom/33enable_apport_crashes28
-rwxr-xr-xscripts/live-bottom/34disable_kwallet30
-rwxr-xr-xscripts/live-bottom/35fix_language_selector30
-rwxr-xr-xscripts/live-bottom/40install_driver_updates32
-rwxr-xr-xscripts/live-bottom/41apt_cdrom32
27 files changed, 497 insertions, 308 deletions
diff --git a/scripts/live-bottom/01integrity_check b/scripts/live-bottom/01integrity_check
index 46a5790..bd88a76 100755
--- a/scripts/live-bottom/01integrity_check
+++ b/scripts/live-bottom/01integrity_check
@@ -1,18 +1,23 @@
#!/bin/sh
+#set -e
+
+# initramfs-tools header
+
PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
+# live-initramfs script
+
grep integrity-check /proc/cmdline && live-md5check /live_media /live_media/md5sum.txt < /dev/tty8
diff --git a/scripts/live-bottom/02_timezone b/scripts/live-bottom/02_timezone
index 873c1da..bafc426 100755
--- a/scripts/live-bottom/02_timezone
+++ b/scripts/live-bottom/02_timezone
@@ -1,21 +1,31 @@
-#! /bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Setting timezone..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Setting timezone..."
+
+# live-initramfs script
+
cp -f /root/usr/share/zoneinfo/UTC /root/etc/localtime
+
+log_end_msg
diff --git a/scripts/live-bottom/02etc_live_conf b/scripts/live-bottom/02etc_live_conf
index f0bbd96..e52d913 100755
--- a/scripts/live-bottom/02etc_live_conf
+++ b/scripts/live-bottom/02etc_live_conf
@@ -1,24 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Copying config on real root fs..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# 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
@@ -37,3 +43,5 @@ export HOSTNAME="$HOSTNAME"
EOF
fi
+
+log_end_msg
diff --git a/scripts/live-bottom/05mountpoints b/scripts/live-bottom/05mountpoints
index 36c2972..82cc7c3 100755
--- a/scripts/live-bottom/05mountpoints
+++ b/scripts/live-bottom/05mountpoints
@@ -1,29 +1,35 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Moving mount points..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Moving mount points..."
+
+# live-initramfs script
# Move to the new root filesystem so that programs there can get at it.
if [ ! -d /root/live_media ]; then
mkdir -p /root/live_media
- mount -n -o move /live_media /root/live_media
+ mount -n --move /live_media /root/live_media
fi
log_end_msg
diff --git a/scripts/live-bottom/10adduser b/scripts/live-bottom/10adduser
index 394f007..f4c42f8 100755
--- a/scripts/live-bottom/10adduser
+++ b/scripts/live-bottom/10adduser
@@ -1,24 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Adding live session user..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Adding live session user..."
+
+# live-initramfs script
if [ "${BUILD_SYSTEM}" == "Debian" ]; then
user_crypted="8Ab05sVQ4LLps" # as in `echo "live" | mkpasswd -s`
@@ -52,6 +58,9 @@ set passwd/username
set passwd/user-uid
EOF
+if [ -z "${NOSUDO}" ]
+then
+
if [ -f /root/etc/sudoers ]; then
if [ "${BUILD_SYSTEM}" == "Ubuntu" ]; then
grep -q '^%admin' /root/etc/sudoers && sed -i -e '/^%admin/s/ALL$/NOPASSWD: ALL/' /root/etc/sudoers || echo '%admin ALL=(ALL) NOPASSWD: ALL' >> /root/etc/sudoers
@@ -90,6 +99,8 @@ EOF
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/
diff --git a/scripts/live-bottom/12fstab b/scripts/live-bottom/12fstab
index fa9c642..389f53e 100755
--- a/scripts/live-bottom/12fstab
+++ b/scripts/live-bottom/12fstab
@@ -1,25 +1,32 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Configuring fstab..."
-FSTAB=/root/etc/fstab
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Configuring fstab..."
+
+# live-initramfs script
+
+FSTAB=/root/etc/fstab
cat > $FSTAB <<EOF
unionfs / unionfs rw 0 0
diff --git a/scripts/live-bottom/13swap b/scripts/live-bottom/13swap
index 9d762f4..4f6be9d 100755
--- a/scripts/live-bottom/13swap
+++ b/scripts/live-bottom/13swap
@@ -1,27 +1,34 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Setting up swap..."
-FSTAB=/root/etc/fstab
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Setting up swap..."
+
+# live-initramfs script
+
+FSTAB=/root/etc/fstab
-if [ -n "${SWAPOFF}" ]
+if [ -n "${NOSWAP}" ]
then
exit 0
fi
diff --git a/scripts/live-bottom/14locales b/scripts/live-bottom/14locales
index 2102569..3fe04c7 100755
--- a/scripts/live-bottom/14locales
+++ b/scripts/live-bottom/14locales
@@ -1,24 +1,30 @@
-#! /bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Setting up locales..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /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
diff --git a/scripts/live-bottom/15autologin b/scripts/live-bottom/15autologin
index 6032437..b24d428 100755
--- a/scripts/live-bottom/15autologin
+++ b/scripts/live-bottom/15autologin
@@ -1,24 +1,33 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Setting up automatic login..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Setting up automatic login..."
+
+# live-initramfs script
+
+if [ -z "${NOXAUTOLOGIN}" ]
+then
if chroot /root [ -f /etc/gdm/gdm-cdd.conf ]; then
GDMCONF=/etc/gdm/gdm-cdd.conf
@@ -51,6 +60,8 @@ if [ -f /root/etc/kde3/kdm/kdmrc ]; then
/root/etc/kde3/kdm/kdmrc
fi
+fi
+
if chroot /root /usr/bin/which kpersonalizer >/dev/null; then
# Disable first-login wizard for KDE
if [ ! -f /root/etc/kde3/kpersonalizerrc ]; then
diff --git a/scripts/live-bottom/18hostname b/scripts/live-bottom/18hostname
index 3a54e87..e854eb2 100755
--- a/scripts/live-bottom/18hostname
+++ b/scripts/live-bottom/18hostname
@@ -1,24 +1,30 @@
-#! /bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Setting hostname..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Setting hostname..."
+
+# live-initramfs script
echo "$HOSTNAME" > /root/etc/hostname
cat > /root/etc/hosts <<EOF
diff --git a/scripts/live-bottom/19keyboard b/scripts/live-bottom/19keyboard
index 31cdfaa..4bc7c3f 100755
--- a/scripts/live-bottom/19keyboard
+++ b/scripts/live-bottom/19keyboard
@@ -1,24 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Setting up console keyboard..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Setting up console keyboard..."
+
+# live-initramfs script
kbd=
cslayout=
diff --git a/scripts/live-bottom/20xconfig b/scripts/live-bottom/20xconfig
index a662333..161215b 100755
--- a/scripts/live-bottom/20xconfig
+++ b/scripts/live-bottom/20xconfig
@@ -1,24 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Configuring X..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /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
diff --git a/scripts/live-bottom/21xvidemode b/scripts/live-bottom/21xvidemode
index 27d943e..944bd33 100755
--- a/scripts/live-bottom/21xvidemode
+++ b/scripts/live-bottom/21xvidemode
@@ -1,24 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Configuring X kludges..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Configuring X kludges..."
+
+# live-initramfs script
if [ -n "$XVIDEOMODE" ]
then
diff --git a/scripts/live-bottom/22gnome_panel_data b/scripts/live-bottom/22gnome_panel_data
index 1b4d41b..34f0be1 100755
--- a/scripts/live-bottom/22gnome_panel_data
+++ b/scripts/live-bottom/22gnome_panel_data
@@ -1,24 +1,31 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Configuring gnome-panel-data..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /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
diff --git a/scripts/live-bottom/22screensaver b/scripts/live-bottom/22screensaver
index 6193a41..51dfbce 100755
--- a/scripts/live-bottom/22screensaver
+++ b/scripts/live-bottom/22screensaver
@@ -1,24 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Configuring screensaver..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /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
diff --git a/scripts/live-bottom/23etc_modules b/scripts/live-bottom/23etc_modules
index 6eec342..82be075 100755
--- a/scripts/live-bottom/23etc_modules
+++ b/scripts/live-bottom/23etc_modules
@@ -1,24 +1,30 @@
-#! /bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Preconfiguring /etc/modules..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Preconfiguring /etc/modules..."
+
+# live-initramfs script
case "$DPKG_ARCH" in
# load the right modules
diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking
index ad7ac95..353cda5 100755
--- a/scripts/live-bottom/23networking
+++ b/scripts/live-bottom/23networking
@@ -1,25 +1,32 @@
-#! /bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Preconfiguring networking..."
-IFFILE="/root/etc/network/interfaces"
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /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
diff --git a/scripts/live-bottom/24preseed b/scripts/live-bottom/24preseed
index d71b441..1e80a17 100755
--- a/scripts/live-bottom/24preseed
+++ b/scripts/live-bottom/24preseed
@@ -1,24 +1,30 @@
-#! /bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Loading preseed file..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
-prereqs ()
+prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Loading preseed file..."
+
+# live-initramfs script
if [ -f "/root/${LOCATION}" ]; then
chroot /root debconf-set-selections < "/root/${LOCATION}"
diff --git a/scripts/live-bottom/25configure_init b/scripts/live-bottom/25configure_init
index b3f6ebf..1152b4b 100755
--- a/scripts/live-bottom/25configure_init
+++ b/scripts/live-bottom/25configure_init
@@ -1,27 +1,36 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Setting up init..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# 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
@@ -61,6 +70,8 @@ if [ -n "$USERNAME" ]; then
fi
fi
+fi
+
# 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/etc/init.d/anacron ]; then
diff --git a/scripts/live-bottom/30accessibility b/scripts/live-bottom/30accessibility
index d8286e6..cbff18c 100755
--- a/scripts/live-bottom/30accessibility
+++ b/scripts/live-bottom/30accessibility
@@ -1,24 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Configuring accessibility options..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /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=""
diff --git a/scripts/live-bottom/31disable_update_notifier b/scripts/live-bottom/31disable_update_notifier
index 6c8b96f..976a3d3 100755
--- a/scripts/live-bottom/31disable_update_notifier
+++ b/scripts/live-bottom/31disable_update_notifier
@@ -1,24 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Disabling update-notifier..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /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
diff --git a/scripts/live-bottom/32disable_hibernation b/scripts/live-bottom/32disable_hibernation
index 813abed..b75dbd9 100755
--- a/scripts/live-bottom/32disable_hibernation
+++ b/scripts/live-bottom/32disable_hibernation
@@ -1,25 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Configuring power management..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /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
diff --git a/scripts/live-bottom/33enable_apport_crashes b/scripts/live-bottom/33enable_apport_crashes
index 1fb1145..0f177ab 100755
--- a/scripts/live-bottom/33enable_apport_crashes
+++ b/scripts/live-bottom/33enable_apport_crashes
@@ -1,24 +1,30 @@
#!/bin/sh
-PREREQ=""
-DESCRIPTION="Enabling notifications about program crashes..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /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
diff --git a/scripts/live-bottom/34disable_kwallet b/scripts/live-bottom/34disable_kwallet
index 9fd0c26..767f9f8 100755
--- a/scripts/live-bottom/34disable_kwallet
+++ b/scripts/live-bottom/34disable_kwallet
@@ -1,24 +1,30 @@
-#! /bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Disabling kwallet..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Disabling kwallet..."
+
+# live-initramfs script
rm -f /root/usr/share/services/kded/kwalletd.desktop
diff --git a/scripts/live-bottom/35fix_language_selector b/scripts/live-bottom/35fix_language_selector
index 1fb78e5..1c9af0a 100755
--- a/scripts/live-bottom/35fix_language_selector
+++ b/scripts/live-bottom/35fix_language_selector
@@ -1,24 +1,30 @@
-#! /bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Fixing language selector..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /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
diff --git a/scripts/live-bottom/40install_driver_updates b/scripts/live-bottom/40install_driver_updates
index 698ed02..66ae123 100755
--- a/scripts/live-bottom/40install_driver_updates
+++ b/scripts/live-bottom/40install_driver_updates
@@ -1,29 +1,35 @@
-#! /bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Installing driver updates..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Installing driver updates..."
+
+# live-initramfs script
+
if [ ! -d /tmp/driver-updates ]; then
exit 0
fi
-log_begin_msg "$DESCRIPTION"
-
install_dir=/var/cache/driver-updates
mkdir "/root$install_dir"
diff --git a/scripts/live-bottom/41apt_cdrom b/scripts/live-bottom/41apt_cdrom
index 97b2cdc..bbfa845 100755
--- a/scripts/live-bottom/41apt_cdrom
+++ b/scripts/live-bottom/41apt_cdrom
@@ -1,24 +1,34 @@
-#! /bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Adding APT-CDROM source..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
- echo "$PREREQ"
+ echo "${PREREQ}"
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Adding APT-CDROM source..."
+
+# live-initramfs script
+
mkdir -p /root/cdrom
mount -n -o bind /cdrom /root/cdrom
chroot /root apt-cdrom -m add
umount /root/cdrom
+
+log_end_msg