summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions16
1 files changed, 16 insertions, 0 deletions
diff --git a/functions b/functions
new file mode 100644
index 0000000..d612ce3
--- /dev/null
+++ b/functions
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+. /etc/mgatools.conf
+
+function isingroup()
+{
+ grp="$1"
+ for group in `groups`
+ do if [ "$grp" = "$group" ]
+ then
+ return 0
+ fi
+ done
+ return 1
+}
+