branch Attitude Adjustment packages
[12.09/packages.git] / utils / boxbackup / files / bbstored.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2010-2011 Openwrt.org
3
4 START=90
5
6 start() {
7         . /lib/functions/bbstored.sh
8
9         create_config
10
11         if [ "$EXTERNAL_CONFIG" -eq 1 ]
12         then
13                 BXBK_CONFIG_FILE="$EXTERNAL_CONF_FILE"
14         fi
15         service_start /usr/sbin/bbstored "$BXBK_CONFIG_FILE"
16 }
17
18 stop() {
19         . /lib/functions/bbstored.sh
20
21         service_stop /usr/sbin/bbstored
22 }