aboutsummaryrefslogtreecommitdiff
path: root/system/burp/rc.burp
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2017-04-15 17:00:06 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-22 08:10:37 +0700
commit1ffbeb49e324ad6f8b996175b5e1f5fe928ff05c (patch)
tree2b07c7acb11d84e682da9d30a03e269455ed6054 /system/burp/rc.burp
parent00854991ac0d068b454971ac0e73c63f6ff660b9 (diff)
system/burp: Updated for version 2.0.54 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/burp/rc.burp')
-rw-r--r--system/burp/rc.burp70
1 files changed, 37 insertions, 33 deletions
diff --git a/system/burp/rc.burp b/system/burp/rc.burp
index 9f4b117e6f6b..89e71e88129f 100644
--- a/system/burp/rc.burp
+++ b/system/burp/rc.burp
@@ -3,29 +3,33 @@
RETVAL=0
-start(){
- echo "Starting burp: /usr/sbin/burp -c /etc/burp/burp-server.conf"
- /usr/sbin/burp -c /etc/burp/burp-server.conf
- RETVAL=$?
- [ "$RETVAL" = 0 ] && touch /var/lock/subsys/burp
- return $RETVAL
+start()
+{
+ echo "Starting burp: /usr/sbin/burp -c /etc/burp/burp-server.conf"
+ /usr/sbin/burp -c /etc/burp/burp-server.conf
+ RETVAL=$?
+ [ "$RETVAL" = 0 ] && touch /var/lock/subsys/burp
+ return $RETVAL
}
-stop(){
- echo "Stopping burp... "
- killall burp 2>/dev/null
- RETVAL=$?
- rm -f /var/lock/subsys/burp
- return $RETVAL
+stop()
+{
+ echo "Stopping burp... "
+ killall burp 2>/dev/null
+ RETVAL=$?
+ rm -f /var/lock/subsys/burp
+ return $RETVAL
}
-restart(){
- stop
- sleep 1
- start
+restart()
+{
+ stop
+ sleep 1
+ start
}
-status(){
+status()
+{
echo -n $"Checking burp: "
/bin/kill -s IOT burp 2>/dev/null
RETVAL=$?
@@ -37,23 +41,23 @@ status(){
return $RETVAL
}
-# See how we were called.
case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- restart
- ;;
- status)
- status
- ;;
- *)
- echo $"Usage: $0 {start|stop|restart|status}"
- RETVAL=1
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart)
+ restart
+ ;;
+ status)
+ status
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart|status}"
+ RETVAL=1
+ ;;
esac
exit $RETVAL