#!/bin/sh 

user_groups=`/usr/bin/groups` 

if [[ $user_groups =~ "maintadmin" ]] 
then 
   if [ ! -w /opt/nortel/base/bin/modemConfig ]
   then 
      /usr/bin/sudo /opt/nortel/base/bin/modemConfig "$@"
   else 
      echo "You can not execute this command with write permissions!" 
   fi
else
   echo "You do not have the permissions to execute this command!" 
fi
