diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-06-28 00:06:33 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2009-06-28 00:06:33 +0000 |
commit | ab8c169a9a13cafd39570531c86f0cd1f8ee6bc5 (patch) | |
tree | 0147dd6bcc3b036975c0f4d3bd5b99366e6afd8d /zshfunc/buildd-start | |
parent | 39b03192816e15a611115e9a2c81de974795da06 (diff) |
Add buildd-{stop,start}
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@402 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshfunc/buildd-start')
-rw-r--r-- | zshfunc/buildd-start | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/zshfunc/buildd-start b/zshfunc/buildd-start new file mode 100644 index 0000000..6d35916 --- /dev/null +++ b/zshfunc/buildd-start @@ -0,0 +1,11 @@ +buildd-start() { + local need_sudo + + if [ -r ~buildd ] ; then + need_sudo="" + else + need_sudo="sudo" + fi + + $need_sudo find ~buildd -maxdepth 1 -name NO-DAEMON-PLEASE -group adm -ls | grep NO-DAEMON-PLEASE && sudo rm -v ~buildd/NO-DAEMON-PLEASE +} |