diff options
author | rhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9> | 2009-06-26 22:36:45 +0000 |
---|---|---|
committer | rhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9> | 2009-06-26 22:36:45 +0000 |
commit | 164f21d90826f0bbdae7a4e1b01885768570ab64 (patch) | |
tree | ba975522156e27fc7ac4fa387609bd021834a743 /net/misc/tinc/rc.tinc.new | |
parent | 4f270ad03f980c25c7accaaa52f608ede76515ce (diff) | |
download | mkbuilds-164f21d90826f0bbdae7a4e1b01885768570ab64.tar.gz mkbuilds-164f21d90826f0bbdae7a4e1b01885768570ab64.tar.bz2 |
tinc: rc.tinc: indentation
git-svn-id: svn+slack://slack.fluxo.info/var/svn/mkbuilds@487 18ef50b8-d735-4ccd-97c1-689132df3dd9
Diffstat (limited to 'net/misc/tinc/rc.tinc.new')
-rw-r--r-- | net/misc/tinc/rc.tinc.new | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/net/misc/tinc/rc.tinc.new b/net/misc/tinc/rc.tinc.new index 2b8a24b..9dc5104 100644 --- a/net/misc/tinc/rc.tinc.new +++ b/net/misc/tinc/rc.tinc.new @@ -1,4 +1,5 @@ #!/bin/sh +# thanks to gentoo initscript tinc_networks() { @@ -11,31 +12,31 @@ tinc_networks() { } tinc_start() { - echo "Starting tinc VPN networks" + echo "Starting tinc VPN networks" for TINCNET in `tinc_networks`; do echo "Starting tinc network $TINCNET" /usr/sbin/tincd --net="$TINCNET" --logfile=/var/log/tinc.$TINCNET.log --pidfile=/var/run/tinc.$TINCNET.pid - done + done } tinc_stop() { - echo "Stopping tinc VPN networks" + echo "Stopping tinc VPN networks" for TINCNET in `tinc_networks`; do - if [ -f /var/run/tinc."$TINCNET".pid ]; then - echo "Stopping tinc network $TINCNET" - /usr/sbin/tincd --kill --pidfile=/var/run/tinc."$TINCNET".pid - fi - done + if [ -f /var/run/tinc."$TINCNET".pid ]; then + echo "Stopping tinc network $TINCNET" + /usr/sbin/tincd --kill --pidfile=/var/run/tinc."$TINCNET".pid + fi + done } tinc_reload() { - echo "Reloading configuration for tinc VPN networks" + echo "Reloading configuration for tinc VPN networks" for TINCNET in `tinc_networks`; do - if [ -f /var/run/tinc."$TINCNET".pid ]; then - echo "Reloading tinc network $TINCNET" - /usr/sbin/tincd --kill HUP --pidfile=/var/run/tinc."$TINCNET".pid - fi - done + if [ -f /var/run/tinc."$TINCNET".pid ]; then + echo "Reloading tinc network $TINCNET" + /usr/sbin/tincd --kill HUP --pidfile=/var/run/tinc."$TINCNET".pid + fi + done } case "$1" in |