#!/usr/sbin/bash # Copyright (C) 2013-2019 iopsys Software Solutions AB # Author Mohamed Kallel usage() { echo "Usage: $0 " echo " Indicate the WEP KEY strength to generate. Should be 64 or 128" echo " Indicate the passphrase used to generate the WEP KEY" echo "$0 -h display this help" } if [ "_$1" = "-h" ]; then usage; exit 0; fi strength=$1 passphrase=$2 if [ _$strength != "_64" -a _$strength != "_128" ] || [ _$passphrase = "_" ]; then usage; exit 0; fi /usr/sbin/icwmpd -w "$strength" "$passphrase"