summaryrefslogtreecommitdiff
path: root/bin/getprofile
authorbenmeyer <benmeyer>2002-10-29 16:11:39 (UTC)
committer benmeyer <benmeyer>2002-10-29 16:11:39 (UTC)
commit2c3aa49e64a63f475bd60707c8cc105829691ab1 (patch) (side-by-side diff)
tree016296ff6ae9857cd1fc53ed43db4c5fe6937e08 /bin/getprofile
parente63cecc3821eda0cb3ace99479112d68bdc023e6 (diff)
downloadopie-2c3aa49e64a63f475bd60707c8cc105829691ab1.zip
opie-2c3aa49e64a63f475bd60707c8cc105829691ab1.tar.gz
opie-2c3aa49e64a63f475bd60707c8cc105829691ab1.tar.bz2
changed the name so *.sh
Diffstat (limited to 'bin/getprofile') (more/less context) (show 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;