00001 #!/usr/bin/env python 00002 00003 import subprocess, re, sys 00004 def qnx_eth_check(): 00005 00006 info = subprocess.Popen(["ifconfig"], stdout=subprocess.PIPE).communicate()[0] 00007 print re.sub('(^|\n)', '\n -', info) 00008 00009 return "wm0: " in info 00010 00011