summaryrefslogtreecommitdiff
path: root/bin/getprofile
Unidiff
Diffstat (limited to 'bin/getprofile') (more/less context) (ignore whitespace changes)
-rwxr-xr-xbin/getprofile8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/getprofile b/bin/getprofile
new file mode 100755
index 0000000..acc334c
--- a/dev/null
+++ b/bin/getprofile
@@ -0,0 +1,8 @@
1#!/bin/sh
2source /var/lib/pcmcia/scheme
3iface="$1"
4while read profile; do
5 if [ "$profile" == "$iface_$SCEME" ]; then echo "$profile"; exit 0; fi;
6done;
7echo "$iface";
8exit 0;