Converted extendlvm script to use selects instead of while loops.