news

Missing On/Off Button Qnap QTS 4.1.1 Qpkg fix

Rss feed for topic ArticleArticle - Posted by: christian On 17-09-2014 @ 21:53 - Updated on: 17-09-2014 @ 21:54

After the release of Qnap Firmware 4.1.1 today some of my home made qpkgs stopped working and the On/Off enable button dissapeared from the App center in QTS.

After searching for a solution for hours I finally found out and the solution is really simple.

In /etc/config/qpkg.conf all qpkgs are declared.

One of the variable of a Package is "shell". When shell is typed with a lowercase "s" the on/off button doesn't show up in qts 4.1.1 anymore and the package doesn't start on boot. When changing shell to Shell(uppercase!) the button shows up again.

So a little example of the change:

Wrong(working prior 4.1.1):

[AutoSub]
Name = AutoSub
Enable = TRUE
Version = Newest
QPKG_File =
Date = 2012-12-09
shell = /share/MD0_DATA/.qpkg/auto-sub/AutoSub.sh
Install_Path = /share/MD0_DATA/.qpkg/auto-sub
WebUI = /
Author = Christian
Web_port = 8083
RC_Number = 133

Fixed(working on all firmwares including 4.1.1)

[AutoSub]
Name = AutoSub
Enable = TRUE
Version = Newest
QPKG_File =
Date = 2012-12-09
Shell = /share/MD0_DATA/.qpkg/auto-sub/AutoSub.sh
Install_Path = /share/MD0_DATA/.qpkg/auto-sub
WebUI = /
Author = Christian
Web_port = 8083
RC_Number = 133

 

It's really easy but took me 2 hours to find out this was the problem, maybe it will help someone else with the same problem.


Comments:

rudger
27-08-2015 - 18:13

Hi Christian, Do you stil have a qpkg for autosub? I've lost mine and I can't find it anywhere on the web. Would be awesome if you can post if for download somewhere! Cheers, Rudger.