diff --git a/releng/manual_devices b/releng/manual_devices index ed7c012c..546edd52 100755 --- a/releng/manual_devices +++ b/releng/manual_devices @@ -18,26 +18,27 @@ fi # get_speeds() { - echo -e "\n${SELF}: Running: ${RELENG_XORRISO} -outdev ${1} -list_speeds" + echo -e "\n${SELF}: Running: ${RELENG_XORRISO} -outdev ${1} -list_speeds" ${RELENG_XORRISO} -outdev ${1} -list_speeds } get_devices() { + echo -e "\n${SELF}: Running: $RELENG_XORRISO -devices 2>/dev/null | grep \"\-dev\"" DEVICES=`$RELENG_XORRISO -devices 2>/dev/null | grep "\-dev"` NUM_DEV=`echo ${DEVICES} | wc -l` case "${NUM_DEV}" in 0) - echo -e "\n${SELF}: No drives found." + echo -e "${SELF}: No drives found." exit 1 ;; 1) - echo -e "\n${SELF}: Single drive found:\n${DEVICES}" + echo -e "${SELF}: Single drive found:\n${DEVICES}" OUTDEV=`${RELENG_XORRISO} -devices 2>/dev/null | perl -pe "s#^\d+\s+\-dev\s+\'## and s#\'.*##"` get_speeds ${OUTDEV} ;; *) - echo -e "\n${SELF}: Multiple drives found. NOT FINISHED YET." + echo -e "${SELF}: Multiple drives found. NOT FINISHED YET." exit 2 ;; esac