From 89fc95c4fcbd65cf7958ba916a2073632ecadb50 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 31 May 2020 15:36:12 -0700 Subject: [PATCH] transmission: add a disabled notification Helps to see that transmission must be enabled. Signed-off-by: Rosen Penev --- net/transmission/Makefile | 2 +- net/transmission/files/transmission.init | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/net/transmission/Makefile b/net/transmission/Makefile index 4e452c6d5..0e26a52cd 100644 --- a/net/transmission/Makefile +++ b/net/transmission/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=transmission PKG_VERSION:=3.00 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@GITHUB/transmission/transmission-releases/master diff --git a/net/transmission/files/transmission.init b/net/transmission/files/transmission.init index 7be368200..eb49b6467 100644 --- a/net/transmission/files/transmission.init +++ b/net/transmission/files/transmission.init @@ -41,7 +41,11 @@ transmission() { local enabled config_get_bool enabled "$cfg" enabled 0 - [ "$enabled" -gt 0 ] || return 1 + [ "$enabled" -gt 0 ] || { + echo "Transmission not enabled. Please enable in /etc/config/transmission" + logger -t "transmission" -p "daemon.info" "Transmission not enabled. Please enable in /etc/config/transmission" + return 1 + } local config_dir config_get config_dir "$cfg" 'config_dir' '/var/etc/transmission'