2011-08-16 22:10:23 +00:00
|
|
|
#!/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
|
2011-11-13 22:16:19 +00:00
|
|
|
BXBK_CONFIG_FILE="$EXTERNAL_CONF_FILE"
|
2011-08-16 22:10:23 +00:00
|
|
|
fi
|
2011-11-13 22:16:19 +00:00
|
|
|
service_start /usr/sbin/bbstored "$BXBK_CONFIG_FILE"
|
2011-08-16 22:10:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
. /lib/functions/bbstored.sh
|
|
|
|
|
2011-11-13 22:16:19 +00:00
|
|
|
service_stop /usr/sbin/bbstored
|
2011-08-16 22:10:23 +00:00
|
|
|
}
|