1 2 3 4 5 6 7 8
#!/bin/sh source /var/lib/pcmcia/scheme iface="$1" while read profile; do if [ "$profile" == "$iface_$SCEME" ]; then echo "$profile"; exit 0; fi; done; echo "$iface"; exit 0;