[Novalug] Wireless

Ben Creitz creitz at gmail.com
Sun Jun 3 21:12:19 EDT 2007


On 6/3/07, Russell Evans <russell-evans at qwest.net> wrote:
> To create the utility you wanted,install hwinfo on your machine, copy the following into a file,  save the file as devdriver, chmod +x devdriver, and then run ./devdriver eth1 to make sure it works, then move the script into your path ($HOME/bin should work).
>
> #!/bin/sh
> #
>
> ### MAIN ###
> HELP="${0##*/} [ -i intereface ]"
>
> while getopts i:h ARG ; do
>   case "$ARG" in
>     i) INTERFACE="$OPTARG" ;;
>     h) echo "$HELP" ; exit 1 ;;
>   esac
> done
>
> if [ "${INTERFACE}" ] ; then
>   hwinfo --network | grep -B3 "Device File: ${INTERFACE}"
> else
>   echo "$HELP"
>   exit 1
> fi
> exit 0
>
>
> Thank you

No, thank you.  This list is great.  So much to learn, so little time...

Ben



More information about the Novalug mailing list