#------------------------------------------------------------------------------ # /etc/rc.d/rc006.dsltool __FLI4LVER__ # # Creation: 06.02.2013 cspiess # Last Update: $Id$ #------------------------------------------------------------------------------ if [ "$OPT_DSLTOOL" = "yes" ] then begin_script DSLTOOL "starting DSL-Tool" # add DSL tool support menu to httpd # we only need to check if the file is here, since an ext # script adds this file only if httpd is active if [ -e /srv/www/admin/dsltool.cgi ] then log_info "add menu entry for DSL-Tool to webgui" httpd-menu.sh add -p 600 dsltool.cgi "DSL-Tool" "" ${DSLTOOL_HOST} fi # add dsltool types to collectd types.db mk_writable /usr/share/collectd/types.db if [ "$DSLTOOL_RRD" = "yes" -a "$RRDTOOL_UNIXSOCK" = "yes" ] then { cat <> /usr/share/collectd/types.db fi grep DSLTOOL /etc/rc.cfg > /var/run/dsltool.conf end_script fi