packages/utils/boxbackup/files/bbstored.init
nico df4b2e3547 packages/boxbackup: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29076 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 22:16:19 +00:00

23 lines
347 B
Bash

#!/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
}