-rwxr-xr-x | bin/getprofile | 8 |
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 | ||
2 | source /var/lib/pcmcia/scheme | ||
3 | iface="$1" | ||
4 | while read profile; do | ||
5 | if [ "$profile" == "$iface_$SCEME" ]; then echo "$profile"; exit 0; fi; | ||
6 | done; | ||
7 | echo "$iface"; | ||
8 | exit 0; | ||