diff options
author | Eric Hameleers <alien@slackware.com> | 2016-06-08 11:52:06 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-06-08 11:52:06 +0200 |
commit | 8d3aef31b97ff8c1db1b397ba59b47db18832d7c (patch) | |
tree | c0fc8b64d16ad5cb8a746bfe2fa6d12814fb0033 /iso2usb.sh | |
parent | 5fbc3d23064f61d215a8267f0e2bbeb5226ac0dc (diff) | |
download | liveslak-8d3aef31b97ff8c1db1b397ba59b47db18832d7c.tar.gz liveslak-8d3aef31b97ff8c1db1b397ba59b47db18832d7c.tar.xz |
iso2usb.sh: use "isoinfo" instead of "iso-info".
It appears that other distros do not always contain "iso-info" which
is part of "libcdio". The "isoinfo" program ion the other hand,
which is part of "cdrtools" is more widely used.
Diffstat (limited to '')
-rw-r--r-- | iso2usb.sh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,4 @@ #!/bin/bash -# $Id: iso2usb.sh,v 1.6 2015/11/29 15:07:35 root Exp root $ # # Copyright 2015, 2016 Eric Hameleers, Eindhoven, NL # All rights reserved. @@ -387,7 +386,7 @@ fi # Are all the required not-so-common add-on tools present? PROG_MISSING="" -for PROGN in blkid cpio extlinux fdisk gdisk iso-info mkdosfs sgdisk unsquashfs ; do +for PROGN in blkid cpio extlinux fdisk gdisk isoinfo mkdosfs sgdisk unsquashfs ; do if ! PATH="/sbin:$PATH" which $PROGN 1>/dev/null 2>/dev/null ; then PROG_MISSING="${PROG_MISSING}-- $PROGN\n" fi @@ -518,7 +517,7 @@ else fi # Write down the version of the ISO image: -VERSION=$(iso-info ${SLISO} |grep Application |cut -d: -f2- 2>/dev/null) +VERSION=$(isoinfo -d -i ${SLISO} 2>/dev/null |grep Application |cut -d: -f2-) if [ -n "$VERSION" ]; then echo "$VERSION" > ${USBMNT}/.isoversion fi |