#!/bin/sh . /etc/mgatools.conf function isingroup() { grp="$1" for group in `groups` do if [ "$grp" = "$group" ] then return 0 fi done return 1 }