Thanks drs305, got it working now:
your code was almost right, and got me on the way:
should be:Code:if [[ "${LONGNAME}" = "Enter Exact Title You Just Copied" && "${DEVICE}" = "/dev/sda1" ]] ; then LONGNAME="Enter Desired New Title Here" elif [ -z "${LONGNAME}" ] ; then LONGNAME="${LABEL}" fi
(just a different use of the [ ] items.)Code:if [ "${LONGNAME}" = "Enter Exact Title You Just Copied" ] && [ "${DEVICE}" = "/dev/sda1" ] ; then LONGNAME="Enter Desired New Title Here" elif [ -z "${LONGNAME}" ] ; then LONGNAME="${LABEL}" fi
Thanks!
Dax



Adv Reply





Bookmarks