summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-05-01 13:41:12 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:09 +0100
commit7111ab7c3b1220384a8f576e170ba3910110ad97 (patch)
tree082e3d69035cd68f9577ebaa5c349b959e7155be /scripts
parentc967ebfc4e43fb16a0c2c140c66900712be95ab7 (diff)
downloadlive-boot-7111ab7c3b1220384a8f576e170ba3910110ad97.tar.gz
live-boot-7111ab7c3b1220384a8f576e170ba3910110ad97.zip
Merging casper 1.217.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live8
-rwxr-xr-xscripts/live-bottom/15autologin8
2 files changed, 11 insertions, 5 deletions
diff --git a/scripts/live b/scripts/live
index 26a6a46..110f41d 100755
--- a/scripts/live
+++ b/scripts/live
@@ -667,7 +667,7 @@ is_nice_device ()
{
sysfs_path="${1#/sys}"
- if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-|platform-orion-ehci|platform-mmc|platform-mxsdhci|)"
+ if /lib/udev/path_id "${sysfs_path}" | egrep -q "ID_PATH=(usb|pci-|platform-orion-ehci|platform-mmc|platform-mxsdhci|)"
then
return 0
elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$'
@@ -1677,7 +1677,7 @@ find_livefs ()
# or do the scan of block devices
# prefer removable devices over non-removable devices, so scan them first
- for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -vE "/(loop|ram|dm-|fd)")
+ for sysblock in $(echo /sys/block/* | tr ' ' '\n' | egrep -v "/(loop|ram|dm-|fd)")
do
if [ "$(cat ${sysblock}/removable)" = "1" ]
then
@@ -1918,9 +1918,7 @@ mountroot ()
umount "${rootmnt}/dev"
fi
- # Kill the debconf-communicate instance and close fd's associated with·
- # debconf-communicate.
- kill $DEBCONF_COMMUNICATE_PID
+ # Close the fd's associated with debconf-communicate
exec 3>&- 4<&-
rm -f /tmp/debconf-in.fifo
rm -f /tmp/debconf-out.fifo
diff --git a/scripts/live-bottom/15autologin b/scripts/live-bottom/15autologin
index a4df2df..12c937d 100755
--- a/scripts/live-bottom/15autologin
+++ b/scripts/live-bottom/15autologin
@@ -103,4 +103,12 @@ then
/root/etc/kde4/kdm/kdmrc
fi
+if [ -f /root/etc/lxdm/lxdm.conf ]
+then
+ # Configure LXDM autologin
+ sed -i -r -e "s/^# autologin=dgod/autologin=$USERNAME/" \
+ -e "s/^# session/session/" \
+ /root/etc/lxdm/lxdm.conf
+fi
+
log_end_msg