diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:40 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:05 +0100 |
| commit | d0fbcc9b3747ab4339f7487e7d845b467962139c (patch) | |
| tree | 73dc1c91ac6cd8a1aac1b795d0359a10470f4ee3 /scripts/live-bottom/25configure_init | |
| parent | 833abaa35c3a77075dd57f3f1a3633d79109a5b4 (diff) | |
| download | live-boot-d0fbcc9b3747ab4339f7487e7d845b467962139c.tar.gz live-boot-d0fbcc9b3747ab4339f7487e7d845b467962139c.zip | |
Adding live-initramfs 1.95.1-1.
Diffstat (limited to 'scripts/live-bottom/25configure_init')
| -rwxr-xr-x | scripts/live-bottom/25configure_init | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/live-bottom/25configure_init b/scripts/live-bottom/25configure_init index 1152b4b..d007556 100755 --- a/scripts/live-bottom/25configure_init +++ b/scripts/live-bottom/25configure_init @@ -66,8 +66,23 @@ if [ -n "$USERNAME" ]; 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 + + if [ "${BUILD_SYSTEM}" = "Ubuntu" ]; then + for x in $(cat /proc/cmdline); do + case $x in + noninteractive) + sed -i -e "s|^exec.*|exec /usr/bin/ubiquity noninteractive </dev/tty1 > /dev/tty1 2>\&1|" /root/etc/event.d/tty1 + rm -f /root/etc/rc?.d/[SK]??gdm + rm -f /root/etc/rc?.d/[SK]??kdm + ;; + esac + done + fi 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 |
