Browse Source

transmission: add a disabled notification

Helps to see that transmission must be enabled.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
89fc95c4fc
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
2 changed files with 6 additions and 2 deletions
  1. +1
    -1
      net/transmission/Makefile
  2. +5
    -1
      net/transmission/files/transmission.init

+ 1
- 1
net/transmission/Makefile View File

@ -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


+ 5
- 1
net/transmission/files/transmission.init View File

@ -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'


Loading…
Cancel
Save