summaryrefslogtreecommitdiff
path: root/etc/function
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-03 17:25:02 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-03 17:25:02 +0100
commit754873a41d32f7acdd1ecd00d017239ff7ae0cf5 (patch)
tree7988c896a5a742b02736284dd21173c80b4e5998 /etc/function
parent7ca26fcadc34720920256d66bbea068ca66db2ad (diff)
Start/Stop: Re-added support for more than one argument
Diffstat (limited to 'etc/function')
-rw-r--r--etc/function6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/function b/etc/function
index 9629d98..3b6e122 100644
--- a/etc/function
+++ b/etc/function
@@ -11,8 +11,8 @@ for funcfile in $ZDIR/functions/*(*N);
unset funcfile
function Start Stop Restart Reload {
- typeset action
- for action in $*; {
- sudo /etc/init.d/$1 ${0:l}
+ typeset script
+ for script in $*; {
+ sudo /etc/init.d/$script ${0:l}
}
}