diff --git a/CONTROL/control b/CONTROL/control
index 3f79d60..aa5d054 100644
--- a/CONTROL/control
+++ b/CONTROL/control
@@ -1,10 +1,10 @@
Package: webif
Priority: optional
Section: web
-Version: 1.4.3-2
+Version: 1.4.3-3
Architecture: mipsel
Maintainer: af123@hpkg.tv
-Depends: tcpfix,webif-channelicons(>=1.1.26),lighttpd(>=1.4.39-1),jim(>=0.77),jim-oo(>=0.77),jim-sqlite3(>=0.77),jim-cgi(>=0.7-1),jim-binary(>=0.76),service-control(>=2.3),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.8),hmt(>=2.0.10),ssmtp,cron-daemon(>=1.18.3-3),at(>=3.1.18),anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.1.11),webif-charts(>=1.2-1),stripts(>=1.4.1),tmenu(>=1.21-2),ffmpeg(>=2.8),id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7),hwctl,nugget(>=0.98),sqlite3(>=3.15.1),jim-xconv
+Depends: tcpfix,webif-channelicons(>=1.1.26),lighttpd(>=1.4.39-1),jim(>=0.77),jim-oo(>=0.77),jim-sqlite3(>=0.77),jim-cgi(>=0.7-1),jim-binary(>=0.76),service-control(>=2.3),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.8),hmt(>=2.0.10),ssmtp,cron-daemon(>=1.18.3-3),at(>=3.1.18),anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.1.11),webif-charts(>=1.2-1),stripts(>=1.4.2),tmenu(>=1.21-2),ffmpeg(>=2.8),id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7),hwctl,nugget(>=0.98-3),sqlite3(>=3.15.1),jim-xconv
Suggests:
Description: An evolving web interface for the Humax.
Tags: https://hummy.tv/forum/threads/7712/
diff --git a/webif/html/browse/index.jim b/webif/html/browse/index.jim
index d0b9c71..f299650 100755
--- a/webif/html/browse/index.jim
+++ b/webif/html/browse/index.jim
@@ -401,6 +401,10 @@ if {$nicesplice} {
}
# Queue
set queueactions(decrypt) "Decryption"
+if {$model ne "HD"} {
+ # For HDR, give slower option too.
+ dict set queueactions "decrypt -direct" "Decryption (direct, slower)"
+}
set queueactions(shrink) "Shrink"
dict set queueactions "mp3 -mp2" "Audio-Extraction (mp2, fast)"
dict set queueactions "mp3 -mp3" "Audio-Extraction (mp3, slow)"
diff --git a/webif/html/settings/modules/advanced/init.hook b/webif/html/settings/modules/advanced/init.hook
index 6e18148..ac2e8a9 100644
--- a/webif/html/settings/modules/advanced/init.hook
+++ b/webif/html/settings/modules/advanced/init.hook
@@ -11,11 +11,36 @@ if {[cgi_get act] eq "xtelnet"} {
exit
}
+if {[cgi_get act] eq "cryptokey"} {
+ set val [cgi_get cryptokey ""]
+ if {[string length "$val"] == 0} {
+ set val [system encryptionkey]
+ puts "Using native encryption key.
"
+ } elseif {[string length $val] != 32} {
+ puts "Encryption key is too short."
+ exit
+ }
+ file write "/mod/boot/cryptokey" [binary format H* $val]
+ system nugget cryptokey -init
+ puts "Installed new encryption key."
+ exit
+}
+
set pkgdev [$settings pkgdev]
set rtschedule [$settings rtschedule]
set logsize [$settings logsize]
set logkeep [$settings logkeep]
+set cryptokey [system encryptionkey]
+if {![catch {set ck_fd [open "/mod/boot/cryptokey"]}]} {
+ set ck_bytes [$ck_fd read 16]
+ $ck_fd close
+ binary scan $ck_bytes H* ck_key
+ if {[string length $ck_key] == 32} {
+ set cryptokey $ck_key
+ }
+}
+
handle_int_update pkgdev $pkgdev "Development Package Display"
handle_int_update rtschedule $rtschedule "Real-time scheduling"
handle_int_update logsize $logsize "Log rotation size"
diff --git a/webif/html/settings/modules/advanced/settings.hook b/webif/html/settings/modules/advanced/settings.hook
index afcf097..a086ebf 100755
--- a/webif/html/settings/modules/advanced/settings.hook
+++ b/webif/html/settings/modules/advanced/settings.hook
@@ -31,9 +31,7 @@ foreach size $sizes {
}
puts "
-
-
-
+