summaryrefslogtreecommitdiff
path: root/etc/function
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-27 17:43:29 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-27 17:43:29 +0100
commit61112c8df0d816fbe16ac710c94abc098b865905 (patch)
tree8f5166e17674a973f9974d9507c4aab22066ed4a /etc/function
parent2e855f2af068f9dc540b9af3950974a78d57d713 (diff)
etc/function: Style change
Diffstat (limited to 'etc/function')
-rw-r--r--etc/function12
1 files changed, 4 insertions, 8 deletions
diff --git a/etc/function b/etc/function
index a0f63c3..1298058 100644
--- a/etc/function
+++ b/etc/function
@@ -10,15 +10,11 @@ autoload zargs
autoload $ZDIR/functions/*(*N:t)
function Start Stop Restart Reload {
- typeset script
- function __sudo {
- if ((EUID)) {
- sudo $*
- } else {
- $*
- }
+ typeset script sudo
+ if ((EUID)) {
+ sudo=sudo
}
for script in $*; {
- __sudo /etc/init.d/$script ${0:l}
+ $sudo /etc/init.d/$script ${0:l}
}
}