summaryrefslogtreecommitdiffstats
path: root/utils/boxbackup/files/bbstored.init
blob: 91e677ec67c631d4af33f835b7ebfee92aa68e86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2011 Openwrt.org

START=90

start() {
	. /lib/functions/bbstored.sh

	create_config

	if [ "$EXTERNAL_CONFIG" -eq 1 ]
	then
		BXBK_CONFIG_FILE="$EXTERNAL_CONF_FILE"
	fi
	service_start /usr/sbin/bbstored "$BXBK_CONFIG_FILE"
}

stop() {
	. /lib/functions/bbstored.sh

	service_stop /usr/sbin/bbstored
}