That test case is poorly written. It has a fixed list of three(!) device types that it tries, all of them very x86-centric. Instead it should extract names from envstat, like: devices=$( envstat -D|awk '{print $1}' ) Martin