summaryrefslogtreecommitdiff
path: root/bin/getprofile
Side-by-side diff
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 @@
+#!/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;