aboutsummaryrefslogtreecommitdiff
path: root/system/burp/rc.burp
diff options
context:
space:
mode:
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 9f4b117e6f6bb..89e71e88129fe 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