summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-06-21 15:28:07 +0000
committerNicolas Vigier <boklm@mageia.org>2011-06-21 15:28:07 +0000
commita0e2c8c32b8aa768d40dae508aa8828bee60cfbb (patch)
tree04dc7c519a2bdd174290b6afbd8661b4ff7bb816 /functions
parentcf6e5a56e2b4d230e20b21845a78589e547b0e04 (diff)
downloadmgatools-a0e2c8c32b8aa768d40dae508aa8828bee60cfbb.tar
mgatools-a0e2c8c32b8aa768d40dae508aa8828bee60cfbb.tar.gz
mgatools-a0e2c8c32b8aa768d40dae508aa8828bee60cfbb.tar.bz2
mgatools-a0e2c8c32b8aa768d40dae508aa8828bee60cfbb.tar.xz
mgatools-a0e2c8c32b8aa768d40dae508aa8828bee60cfbb.zip
add script to move update from updates_testing to updates repository
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
+}
+