wok-6.x diff syslinux/stuff/iso2exe/init @ rev 18034

syslinux/taziso: add burn
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 09 21:54:15 2015 +0200 (2015-05-09)
parents f796d8c9c50e
children 05e8a6b1bd47
line diff
     1.1 --- a/syslinux/stuff/iso2exe/init	Mon Apr 13 19:10:05 2015 +0100
     1.2 +++ b/syslinux/stuff/iso2exe/init	Sat May 09 21:54:15 2015 +0200
     1.3 @@ -655,6 +655,29 @@
     1.4  	echo -en "\"$1\"	\"$2\""
     1.5  }
     1.6  
     1.7 +burnable()
     1.8 +{
     1.9 +	[ "$(sed '/Can wr.*1$/!d' /proc/sys/dev/cdrom/info)" ] &&
    1.10 +	[ "$(which wodim)" ] && echo -en "\"$1\"	\"$2\""
    1.11 +}
    1.12 +
    1.13 +blankable()
    1.14 +{
    1.15 +	[ "$(sed '/Can wr.*RW.*1$/!d' /proc/sys/dev/cdrom/info)" ] &&
    1.16 +	[ "$(which wodim)" ] && echo -en "\"$1\"	\"$2\""
    1.17 +}
    1.18 +
    1.19 +burniso()
    1.20 +{
    1.21 +	wodim -v speed=$(fgrep "drive speed" /proc/sys/dev/cdrom/info | cut -f3) \
    1.22 +		-eject -multi "$ISO"
    1.23 +}
    1.24 +
    1.25 +blankcd()
    1.26 +{
    1.27 +	wodim -v -blank=fast
    1.28 +}
    1.29 +
    1.30  gotisomd5()
    1.31  {
    1.32  	[ "$(which md5sum 2> /dev/null)" ] &&
    1.33 @@ -968,6 +991,8 @@
    1.34  $(gotisomd5		"isomd5"	"Check the ISO image") \
    1.35  $(cdfile "md5sum*"	"md5"		"Check the ISO files") \
    1.36  $(cdfile "sha*sum*"	"sha"		"Check the ISO files") \
    1.37 +$(burnable		"burniso"	"Burn the ISO image") \
    1.38 +$(blankable		"blankcd"	"Blank the CD/DVD") \
    1.39  $(gotposixovl		"install"	"Hard disk installation (UMSDOS way)") \
    1.40  $(gotposixovl		"installtaz"	"Hard disk installation (TAZUSB way)") \
    1.41  $(xfile tazusb		"usbkey"	"USB key read/write installation") \