wok diff syslinux/stuff/iso2exe/init @ rev 18289

knock: set default interface
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 14 10:06:48 2015 +0200 (2015-08-14)
parents 05e8a6b1bd47
children a7572fba48de
line diff
     1.1 --- a/syslinux/stuff/iso2exe/init	Sun May 17 00:09:41 2015 +0200
     1.2 +++ b/syslinux/stuff/iso2exe/init	Fri Aug 14 10:06:48 2015 +0200
     1.3 @@ -975,13 +975,15 @@
     1.4  which $DIALOG 2> /dev/null || DIALOG=tinydialog
     1.5  dmesg > /tmp/dmesg
     1.6  
     1.7 +isotitle="$(basename $ISO)  $(stat -c %y /cdrom/media/. | sed 's/ .*//'\
     1.8 +	  )  $(blkid /mnt/$ISO | sed 's/.*LABEL="\([^"]*\).*/\1/')"
     1.9  while true; do
    1.10  	trap shell 2 
    1.11  	keymap="$(cat /etc/keymap.conf 2> /dev/null)"
    1.12  	locale="$(sed '/^LANG=/!d;s/.*=//' /etc/locale.conf 2> /dev/null)"
    1.13  	cat > /tmp/dialog <<EOT
    1.14  $DIALOG  --clear \
    1.15 -	--title " Welcome to Linux " \
    1.16 +	--title " ${isotitle:-Welcome to Linux} " \
    1.17  	--menu "" 23 70 17 \
    1.18  $(xfile tazkeymap	"tazkeymap"	"Select keyboard (${keymap:-none})") \
    1.19  $(xfile tazlocale	"tazlocale"	"Select locale (${locale:-none})") \