author | benmeyer <benmeyer> | 2002-10-29 16:11:39 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-29 16:11:39 (UTC) |
commit | 2c3aa49e64a63f475bd60707c8cc105829691ab1 (patch) (unidiff) | |
tree | 016296ff6ae9857cd1fc53ed43db4c5fe6937e08 /bin/getprofile | |
parent | e63cecc3821eda0cb3ace99479112d68bdc023e6 (diff) | |
download | opie-2c3aa49e64a63f475bd60707c8cc105829691ab1.zip opie-2c3aa49e64a63f475bd60707c8cc105829691ab1.tar.gz opie-2c3aa49e64a63f475bd60707c8cc105829691ab1.tar.bz2 |
changed the name so *.sh
-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; | ||