1 #!/bin/sh /etc/rc.common
2 # Basic init script for mosquitto
3 # April 2012, OpenWrt.org
4 # Provides support for the luci-app-mosquitto package, if installed
8 USE_UCI_CONFIG
=$
(uci
-q get mosquitto.owrt.use_uci
)
17 user_exists mosquitto
200 || user_add mosquitto
200
18 if [ "$USE_UCI_CONFIG" -eq 1 ]; then
19 CONF
=/tmp
/mosquitto.converted.$$.conf
20 mosquitto.uci.convert
-f $CONF
22 CONF
=/etc
/mosquitto
/mosquitto.conf
24 service_start
$APP -c $CONF