<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hummy.tv/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Drutt</id>
	<title>hummy.tv Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hummy.tv/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Drutt"/>
	<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/wiki/Special:Contributions/Drutt"/>
	<updated>2026-05-07T01:56:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=505</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=505"/>
		<updated>2011-09-27T13:18:08Z</updated>

		<summary type="html">&lt;p&gt;Drutt: /* Package installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does not exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, with either Telnet or the web interface set up to install packages. An understanding that this is done at your own risk etc!&lt;br /&gt;
&lt;br /&gt;
==Package installation==&lt;br /&gt;
UPDATE - There is now a package available (BootHDR) that installs the scripts for running the HDR software on the HD. &lt;br /&gt;
&lt;br /&gt;
The package can be installed the via either telnet (&amp;quot;opkg install BootHDR&amp;quot;) or the web interface. Note if using the web interface the text output is buffered until completion, and it takes time to download/extract the HDR firmware package, so please be patient.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The installer should extract the firmware if it finds it in /mod/hdr_fox_t2_upgrade.hdf, or will attempt to download from the Humax support site it using wget (the box obviously needs to be connected to the internet for this).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once installed you should be able to boot the box into &amp;quot;HDR mode&amp;quot; by typing &amp;quot;bootHDRmode&amp;quot; at the telnet prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The package also contains a startup script that checks for the existence of a &amp;quot;flag&amp;quot; directory on startup, to allow booting into HDR mode using only the remote control. A directory called &amp;quot;*ModSettings&amp;quot; is created on the root of the usb drive, containing a &amp;quot;flag directory&amp;quot;. To boot in HDR mode using the remote simply copy the directory &amp;quot;Trigger-HDRModeNextBoot&amp;quot; to the root of the drive, then reboot. This is also safer than running the script as the box will not fully reboot if it is recording something.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After a few seconds, the box should reboot in HDR mode. You can confirm this is the case by looking at the system information in the settings menu, or by the fact the the &amp;quot;media&amp;quot; button takes you straight to the videos folder, and the &amp;quot;disk usage&amp;quot; pie chart is green rather than blue. Most functionality is there, other than the led lights on the front of the box, audio volume is lower, and recording does not work. [Future investigations - try and setup such that recording will work, which may also allow the built in DLNA server to function].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can now copy recordings to other drives (real, virtual or networked) and they will be decrypted. Use the auto-unprotect package to remove the &amp;quot;encrypted&amp;quot; flag from HD content. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To return to normal just reboot.&lt;br /&gt;
&lt;br /&gt;
==Manual installation==&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the &amp;lt;tt&amp;gt;/mod/&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: Call the script &amp;lt;tt&amp;gt;bootHDRmode&amp;lt;/tt&amp;gt;, and put it in &amp;lt;tt&amp;gt;/mod/bin&amp;lt;/tt&amp;gt;. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the permissions and execute flag on this script - in telnet type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/bin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If the script was created in a Windows editor, you may need to fix up the line endings for unix. This should do the trick:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dos2unix /mod/bin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 bootHDRmode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in &amp;lt;tt&amp;gt;/mod/etc/init.d &amp;lt;/tt&amp;gt; called something like &amp;lt;tt&amp;gt;S98polling&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/bin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, permissions and execute flag may need setting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/etc/init.d/S98polling&lt;br /&gt;
chmod 755 /mod/sbin/polling&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=504</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=504"/>
		<updated>2011-09-27T13:16:54Z</updated>

		<summary type="html">&lt;p&gt;Drutt: /* Package installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does not exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, with either Telnet or the web interface set up to install packages. An understanding that this is done at your own risk etc!&lt;br /&gt;
&lt;br /&gt;
==Package installation==&lt;br /&gt;
UPDATE - There is now a package available (BootHDR) that installs the scripts for running the HDR software on the HD. &lt;br /&gt;
&lt;br /&gt;
*The package can be installed the via either telnet (&amp;quot;opkg install BootHDR&amp;quot;) or the web interface. Note if using the web interface the text output is buffered until completion, and it takes time to download/extract the HDR firmware package, so please be patient.&lt;br /&gt;
&lt;br /&gt;
*The installer should extract the firmware if it finds it in /mod/hdr_fox_t2_upgrade.hdf, or will attempt to download from the Humax support site it using wget (the box obviously needs to be connected to the internet for this).&lt;br /&gt;
&lt;br /&gt;
*Once installed you should be able to boot the box into &amp;quot;HDR mode&amp;quot; by typing &amp;quot;bootHDRmode&amp;quot; at the telnet prompt. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The package also contains a startup script that checks for the existence of a &amp;quot;flag&amp;quot; directory on startup, to allow booting into HDR mode using only the remote control. A directory called &amp;quot;*ModSettings&amp;quot; is created on the root of the usb drive, containing a &amp;quot;flag directory&amp;quot;. To boot in HDR mode using the remote simply copy the directory &amp;quot;Trigger-HDRModeNextBoot&amp;quot; to the root of the drive, then reboot. This is also safer than running the script as the box will not fully reboot if it is recording something.&lt;br /&gt;
&lt;br /&gt;
After a few seconds, the box should reboot in HDR mode. You can confirm this is the case by looking at the system information in the settings menu, or by the fact the the &amp;quot;media&amp;quot; button takes you straight to the videos folder, and the &amp;quot;disk usage&amp;quot; pie chart is green rather than blue. Most functionality is there, other than the led lights on the front of the box, audio volume is lower, and recording does not work. [Future investigations - try and setup such that recording will work, which may also allow the built in DLNA server to function].&lt;br /&gt;
&lt;br /&gt;
You can now copy recordings to other drives (real, virtual or networked) and they will be decrypted. Use the auto-unprotect package to remove the &amp;quot;encrypted&amp;quot; flag from HD content. &lt;br /&gt;
&lt;br /&gt;
To return to normal just reboot.&lt;br /&gt;
&lt;br /&gt;
==Manual installation==&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the &amp;lt;tt&amp;gt;/mod/&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: Call the script &amp;lt;tt&amp;gt;bootHDRmode&amp;lt;/tt&amp;gt;, and put it in &amp;lt;tt&amp;gt;/mod/bin&amp;lt;/tt&amp;gt;. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the permissions and execute flag on this script - in telnet type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/bin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If the script was created in a Windows editor, you may need to fix up the line endings for unix. This should do the trick:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dos2unix /mod/bin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 bootHDRmode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in &amp;lt;tt&amp;gt;/mod/etc/init.d &amp;lt;/tt&amp;gt; called something like &amp;lt;tt&amp;gt;S98polling&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/bin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, permissions and execute flag may need setting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/etc/init.d/S98polling&lt;br /&gt;
chmod 755 /mod/sbin/polling&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=503</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=503"/>
		<updated>2011-09-27T13:15:46Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does not exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, with either Telnet or the web interface set up to install packages. An understanding that this is done at your own risk etc!&lt;br /&gt;
&lt;br /&gt;
==Package installation==&lt;br /&gt;
UPDATE - There is now a package available (BootHDR) that installs the scripts for running the HDR software on the HD. &lt;br /&gt;
&lt;br /&gt;
*The package can be installed the via either telnet (&amp;quot;opkg install BootHDR&amp;quot;) or the web interface. Note if using the web interface the text output is buffered until completion, and it takes time to download/extract the HDR firmware package, so please be patient.&lt;br /&gt;
&lt;br /&gt;
*The installer should extract the firmware if it finds it in /mod/hdr_fox_t2_upgrade.hdf, or will attempt to download from the Humax support site it using wget (the box obviously needs to be connected to the internet for this).&lt;br /&gt;
&lt;br /&gt;
*Once installed you should be able to boot the box into &amp;quot;HDR mode&amp;quot; by typing &amp;quot;bootHDRmode&amp;quot; at the telnet prompt. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
*The package also contains a startup script that checks for the existence of a &amp;quot;flag&amp;quot; directory on startup, to allow booting into HDR mode using only the remote control. A directory called &amp;quot;*ModSettings&amp;quot; is created on the root of the usb drive, containing a &amp;quot;flag directory&amp;quot;. To boot in HDR mode using the remote simply copy the directory &amp;quot;Trigger-HDRModeNextBoot&amp;quot; to the root of the drive, then reboot. This is also safer than running the script as the box will not fully reboot if it is recording something.&lt;br /&gt;
&lt;br /&gt;
After a few seconds, the box should reboot in HDR mode. You can confirm this is the case by looking at the system information in the settings menu, or by the fact the the &amp;quot;media&amp;quot; button takes you straight to the videos folder, and the &amp;quot;disk usage&amp;quot; pie chart is green rather than blue. Most functionality is there, other than the led lights on the front of the box, audio volume is lower, and recording does not work. [Future investigations - try and setup such that recording will work, which may also allow the built in DLNA server to function].&lt;br /&gt;
&lt;br /&gt;
You can now copy recordings to other drives (real, virtual or networked) and they will be decrypted. Use the auto-unprotect package to remove the &amp;quot;encrypted&amp;quot; flag from HD content. &lt;br /&gt;
&lt;br /&gt;
To return to normal just reboot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Manual installation==&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the &amp;lt;tt&amp;gt;/mod/&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: Call the script &amp;lt;tt&amp;gt;bootHDRmode&amp;lt;/tt&amp;gt;, and put it in &amp;lt;tt&amp;gt;/mod/bin&amp;lt;/tt&amp;gt;. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the permissions and execute flag on this script - in telnet type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/bin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If the script was created in a Windows editor, you may need to fix up the line endings for unix. This should do the trick:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dos2unix /mod/bin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 bootHDRmode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in &amp;lt;tt&amp;gt;/mod/etc/init.d &amp;lt;/tt&amp;gt; called something like &amp;lt;tt&amp;gt;S98polling&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/bin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, permissions and execute flag may need setting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/etc/init.d/S98polling&lt;br /&gt;
chmod 755 /mod/sbin/polling&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=502</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=502"/>
		<updated>2011-09-27T13:12:27Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does not exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, with either Telnet or the web interface set up to install packages. An understanding that this is done at your own risk etc!&lt;br /&gt;
&lt;br /&gt;
UPDATE - There is now a package available (BootHDR) that installs the scripts for running the HDR software on the HD. &lt;br /&gt;
&lt;br /&gt;
The package can be installed the via either telnet (&amp;quot;opkg install BootHDR&amp;quot;) or the web interface. Note if using the web interface the text output is buffered until completion, and it takes time to download/extract the HDR firmware package, so please be patient.&lt;br /&gt;
&lt;br /&gt;
The installer should extract the firmware if it finds it in /mod/hdr_fox_t2_upgrade.hdf, or will attempt to download from the Humax support site it using wget (the box obviously needs to be connected to the internet for this).&lt;br /&gt;
&lt;br /&gt;
Once installed you should be able to boot the box into &amp;quot;HDR mode&amp;quot; by typing &amp;quot;bootHDRmode&amp;quot; at the telnet prompt. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
The package also contains a startup script that checks for the existence of a &amp;quot;flag&amp;quot; directory on startup, to allow booting into HDR mode using only the remote control.&lt;br /&gt;
&lt;br /&gt;
A directory called &amp;quot;*ModSettings&amp;quot; is created on the root of the usb drive, containing a &amp;quot;flag directory&amp;quot;. To boot in HDR mode using the remote simply copy the directory &amp;quot;Trigger-HDRModeNextBoot&amp;quot; to the root of the drive, then reboot. This is also safer than running the script as the box will not fully reboot if it is recording something.&lt;br /&gt;
&lt;br /&gt;
After a few seconds, the box should reboot in HDR mode. You can confirm this is the case by looking at the system information in the settings menu, or by the fact the the &amp;quot;media&amp;quot; button takes you straight to the videos folder, and the &amp;quot;disk usage&amp;quot; pie chart is green rather than blue. Most functionality is there, other than the led lights on the front of the box, audio volume is lower, and recording does not work. [Future investigations - try and setup such that recording will work, which may also allow the built in DLNA server to function].&lt;br /&gt;
&lt;br /&gt;
You can now copy recordings to other drives (real, virtual or networked) and they will be decrypted. Use the auto-unprotect package to remove the &amp;quot;encrypted&amp;quot; flag from HD content. &lt;br /&gt;
&lt;br /&gt;
To return to normal just reboot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Manual installation:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the &amp;lt;tt&amp;gt;/mod/&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: Call the script &amp;lt;tt&amp;gt;bootHDRmode&amp;lt;/tt&amp;gt;, and put it in &amp;lt;tt&amp;gt;/mod/bin&amp;lt;/tt&amp;gt;. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the permissions and execute flag on this script - in telnet type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/bin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If the script was created in a Windows editor, you may need to fix up the line endings for unix. This should do the trick:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dos2unix /mod/bin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 bootHDRmode&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in &amp;lt;tt&amp;gt;/mod/etc/init.d &amp;lt;/tt&amp;gt; called something like &amp;lt;tt&amp;gt;S98polling&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/bin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, permissions and execute flag may need setting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/etc/init.d/S98polling&lt;br /&gt;
chmod 755 /mod/sbin/polling&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=498</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=498"/>
		<updated>2011-09-20T14:17:31Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does not exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, telnet set up, humidify and squashfs-tools packages. An understanding that this is done at your own risk etc!&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the &amp;lt;tt&amp;gt;/mod/&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: Call the script &amp;lt;tt&amp;gt;bootHDRmode&amp;lt;/tt&amp;gt;, and put it in &amp;lt;tt&amp;gt;/mod/bin&amp;lt;/tt&amp;gt;. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the permissions and execute flag on this script - in telnet type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/bin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If the script was created in a Windows editor, you may need to fix up the line endings for unix. This should do the trick:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dos2unix /mod/bin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 bootHDRmode&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
After a few seconds, the box should reboot in HDR mode. You can confirm this is the case by looking at the system information in the settings menu, or by the fact the the &amp;quot;media&amp;quot; button takes you straight to the videos folder, and the &amp;quot;disk usage&amp;quot; pie chart is green rather than blue. Most functionality is there, other than the led lights on the front of the box, audio volume is lower, and recording does not work. [Future investigations - try and setup such that recording will work, which may also allow the built in DLNA server to function].&lt;br /&gt;
&lt;br /&gt;
You can now copy recordings to other drives (real, virtual or networked) and they will be decrypted. Use the auto-unprotect package to remove the &amp;quot;encrypted&amp;quot; flag from HD content. &lt;br /&gt;
&lt;br /&gt;
To return to normal just reboot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in &amp;lt;tt&amp;gt;/mod/etc/init.d &amp;lt;/tt&amp;gt; called something like &amp;lt;tt&amp;gt;S98polling&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/bin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, permissions and execute flag may need setting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/etc/init.d/S98polling&lt;br /&gt;
chmod 755 /mod/sbin/polling&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=419</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=419"/>
		<updated>2011-09-06T20:49:52Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does not exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, telnet set up, humidify and squashfs-tools packages. An understanding that this is done at your own risk etc!&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the &amp;lt;tt&amp;gt;/mod/&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: Call the script &amp;lt;tt&amp;gt;bootHDRmode&amp;lt;/tt&amp;gt;, and put it in &amp;lt;tt&amp;gt;/mod/sbin&amp;lt;/tt&amp;gt;. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the permissions and execute flag on this script - in telnet type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/sbin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If the script was created in a Windows editor, you may need to fix up the line endings for unix. This should do the trick:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dos2unix /mod/sbin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 /mod/sbin/bootHDRmode&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
After a few seconds, the box should reboot in HDR mode. You can confirm this is the case by looking at the system information in the settings menu, or by the fact the the &amp;quot;media&amp;quot; button takes you straight to the videos folder, and the &amp;quot;disk usage&amp;quot; pie chart is green rather than blue. Most functionality is there, other than the led lights on the front of the box, audio volume is lower, and recording does not work. [Future investigations - try and setup such that recording will work, which may also allow the built in DLNA server to function].&lt;br /&gt;
&lt;br /&gt;
You can now copy recordings to other drives (real, virtual or networked) and they will be decrypted. Use the auto-unprotect package to remove the &amp;quot;encrypted&amp;quot; flag from HD content. &lt;br /&gt;
&lt;br /&gt;
To return to normal just reboot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in &amp;lt;tt&amp;gt;/mod/etc/init.d &amp;lt;/tt&amp;gt; called something like &amp;lt;tt&amp;gt;S98polling&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/sbin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, permissions and execute flag may need setting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/etc/init.d/S98polling&lt;br /&gt;
chmod 755 /mod/sbin/polling&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=264</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=264"/>
		<updated>2011-08-19T08:10:06Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does not exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, telnet set up, humidify and squashfs-tools packages. An understanding that this is done at your own risk etc!&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the &amp;lt;tt&amp;gt;/mod/&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: Call the script &amp;lt;tt&amp;gt;bootHDRmode&amp;lt;/tt&amp;gt;, and put it in &amp;lt;tt&amp;gt;/mod/sbin&amp;lt;/tt&amp;gt;. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the permissions and execute flag on this script - in telnet type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/sbin/bootHDRmode&lt;br /&gt;
chmod -x /mod/sbin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 /mod/sbin/bootHDRmode&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
After a few seconds, the box should reboot in HDR mode. You can confirm this is the case by looking at the system information in the settings menu, or by the fact the the &amp;quot;media&amp;quot; button takes you straight to the videos folder, and the &amp;quot;disk usage&amp;quot; pie chart is green rather than blue. Most functionality is there, other than the led lights on the front of the box, audio volume is lower, and recording does not work. [Future investigations - try and setup such that recording will work, which may also allow the built in DLNA server to function].&lt;br /&gt;
&lt;br /&gt;
You can now copy recordings to other drives (real, virtual or networked) and they will be decrypted. Use the auto-unprotect package to remove the &amp;quot;encrypted&amp;quot; flag from HD content. &lt;br /&gt;
&lt;br /&gt;
To return to normal just reboot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in &amp;lt;tt&amp;gt;/mod/etc/init.d &amp;lt;/tt&amp;gt; called something like &amp;lt;tt&amp;gt;S98polling&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;#039;bash&amp;#039;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/sbin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, permissions and execute flag may need setting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/etc/init.d/S98polling&lt;br /&gt;
chmod -x /mod/etc/init.d/S98polling&lt;br /&gt;
chmod 755 /mod/sbin/polling&lt;br /&gt;
chmod -x /mod/sbin/polling&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Compile_Software_for_the_Humax&amp;diff=251</id>
		<title>Compile Software for the Humax</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Compile_Software_for_the_Humax&amp;diff=251"/>
		<updated>2011-08-18T19:58:15Z</updated>

		<summary type="html">&lt;p&gt;Drutt: /* Compiling on-box */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Compiling on-box ==&lt;br /&gt;
&lt;br /&gt;
It is possible to compile some software directly on the Humax itself, however due to the limited amount of CPU horsepower available, this is only recommended for fairly small packages.&lt;br /&gt;
&lt;br /&gt;
First you need to install the &amp;#039;&amp;#039;gcc&amp;#039;&amp;#039; and &amp;#039;&amp;#039;gawk&amp;#039;&amp;#039; packages. &amp;#039;&amp;#039;gcc&amp;#039;&amp;#039; is the compiler itself and automatically pulls in dependant packages, &amp;#039;&amp;#039;gawk&amp;#039;&amp;#039; is needed to properly support packages which use GNU autoconf, which most do.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
humax# opkg install gcc gawk gmake&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this, close your telnet session and create a new one to properly set up the environment, and you are ready to compile your first piece of software on the Humax.&lt;br /&gt;
&lt;br /&gt;
=== Example - compiling the GNU zip (gzip) program ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
humax# cd /mod/tmp&lt;br /&gt;
humax# wget http://ftp.gnu.org/gnu/gzip/gzip-1.4.tar.gz&lt;br /&gt;
--2011-08-18 16:39:58--  http://ftp.gnu.org/gnu/gzip/gzip-1.4.tar.gz&lt;br /&gt;
Resolving ftp.gnu.org... 140.186.70.20&lt;br /&gt;
Connecting to ftp.gnu.org|140.186.70.20|:80... connected.&lt;br /&gt;
HTTP request sent, awaiting response... 200 OK&lt;br /&gt;
Length: 907411 (886K) [application/x-gzip]&lt;br /&gt;
Saving to: `gzip-1.4.tar.gz&amp;#039;&lt;br /&gt;
&lt;br /&gt;
100%[======================================&amp;gt;] 907,411      225K/s   in 4.2s    &lt;br /&gt;
&lt;br /&gt;
2011-08-18 16:40:03 (210 KB/s) - `gzip-1.4.tar.gz&amp;#039; saved [907411/907411]&lt;br /&gt;
&lt;br /&gt;
humax# tar -xvf gzip-1.4.tar.gz &lt;br /&gt;
gzip-1.4/&lt;br /&gt;
gzip-1.4/zgrep.1&lt;br /&gt;
gzip-1.4/configure.ac&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
humax# cd gzip-1.4&lt;br /&gt;
humax# CFLAGS=&amp;quot;-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64&amp;quot; \&lt;br /&gt;
    ./configure --prefix=/mod --build=mipsel-linux&lt;br /&gt;
checking for a BSD-compatible install... /mod/bin/busybox/install -c&lt;br /&gt;
checking whether build environment is sane... yes&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
humax# make&lt;br /&gt;
Making all in lib&lt;br /&gt;
make[1]: Entering directory `/mnt/hd2/mod/tmp/gzip-1.4/lib&amp;#039;&lt;br /&gt;
  GEN      alloca.h&lt;br /&gt;
  GEN      arg-nonnull.h&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
humax# ./gzip -V&lt;br /&gt;
gzip 1.4&lt;br /&gt;
Copyright (C) 2007 Free Software Foundation, Inc.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cross compiling on an external host ==&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=240</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=240"/>
		<updated>2011-08-18T13:13:01Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, telnet set up, humidify and squashfs-tools packages. An understanding that this is done at your own risk etc!&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the /mod/ directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: Call the script bootHDRmode, and put it in /mod/sbin. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the permissions and execute flag on this script - in telnet type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/sbin/bootHDRmode&lt;br /&gt;
chmod -x /mod/sbin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 /mod/sbin/bootHDRmode&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
After a few seconds, the box should reboot in HDR mode. You can confirm this is the case by looking at the system information in the settings menu, or by the fact the the &amp;quot;media&amp;quot; button takes you straight to the videos folder, and the &amp;quot;disk usage&amp;quot; pie chart is green rather than blue. Most functionality is there, other than the led lights on the front of the box, audio volume is lower, and recording does not work. [Future investigations - try and setup such that recording will work, which may also allow the built in DLNA server to function].&lt;br /&gt;
&lt;br /&gt;
You can now copy recordings to other drives (real, virtual or networked) and they will be decrypted. Use the auto-unprotect package to remove the &amp;quot;encrypted&amp;quot; flag from HD content. &lt;br /&gt;
&lt;br /&gt;
To return to normal just reboot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in /mod/etc/init.d called something like S98polling:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/sbin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, permissions and execute flag may need setting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/etc/init.d/S98polling&lt;br /&gt;
chmod -x /mod/etc/init.d/S98polling&lt;br /&gt;
chmod 755 /mod/sbin/polling&lt;br /&gt;
chmod -x /mod/sbin/polling&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=239</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=239"/>
		<updated>2011-08-18T13:11:00Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, telnet set up, humidify and squashfs-tools packages.&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the /mod/ directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: Call the script bootHDRmode, and put it in /mod/sbin. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Setup the permissions and execute flag on this script - in telnet type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/sbin/bootHDRmode&lt;br /&gt;
chmod -x /mod/sbin/bootHDRmode&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 /mod/sbin/bootHDRmode&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
After a few seconds, the box should reboot in HDR mode. You can confirm this is the case by looking at the system information in the settings menu, or by the fact the the &amp;quot;media&amp;quot; button takes you straight to the videos folder, and the &amp;quot;disk usage&amp;quot; pie chart is green rather than blue. Most functionality is there, other than the led lights on the front of the box, audio volume is lower, and recording does not work. [Future investigations - try and setup such that recording will work, which may also allow the built in DLNA server to function].&lt;br /&gt;
&lt;br /&gt;
You can now copy recordings to other drives (real, virtual or networked) and they will be decrypted. Use the auto-unprotect package to remove the &amp;quot;encrypted&amp;quot; flag from HD content. &lt;br /&gt;
&lt;br /&gt;
To return to normal just reboot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in /mod/etc/init.d called something like S98polling:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/sbin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, permissions and execute flag may need setting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod 755 /mod/etc/init.d/S98polling&lt;br /&gt;
chmod -x /mod/etc/init.d/S98polling&lt;br /&gt;
chmod 755 /mod/sbin/polling&lt;br /&gt;
chmod -x /mod/sbin/polling&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=234</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=234"/>
		<updated>2011-08-18T11:30:38Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, telnet set up, humidify and squashfs-tools packages.&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the /mod/ directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: Call the script bootHDRmode, and put it in /mod/sbin. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 /mod/sbin/bootHDmode&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
After a few seconds, the box should reboot in HDR mode. You can confirm this is the case by looking at the system information in the settings menu, or by the fact the the &amp;quot;media&amp;quot; button takes you straight to the videos folder, and the &amp;quot;disk usage&amp;quot; pie chart is green rather than blue. Most functionality is there, other than the led lights on the front of the box, audio volume is lower, and recording does not work. [Future investigations - try and setup such that recording will work, which may also allow the built in DLNA server to function].&lt;br /&gt;
&lt;br /&gt;
You can now copy recordings to other drives (real, virtual or networked) and they will be decrypted. Use the auto-unprotect package to remove the &amp;quot;encrypted&amp;quot; flag from HD content. &lt;br /&gt;
&lt;br /&gt;
To return to normal just reboot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in /mod/etc/init.d called something like S98polling:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/sbin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=228</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=228"/>
		<updated>2011-08-18T11:06:45Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, telnet set up, humidify and squashfs-tools packages.&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the /mod/ directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: &lt;br /&gt;
&lt;br /&gt;
Call the script bootHDRmode, and put it in /mod/sbin. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
#Run this script to load the HDR ELF&lt;br /&gt;
exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
rm -f /tmp/.humaxtv.running&lt;br /&gt;
touch /tmp/.humaxtv.restart&lt;br /&gt;
killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 /mod/sbin/bootHDmode&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in /mod/etc/init.d called something like S98polling:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
       start)&lt;br /&gt;
               /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
               ;;&lt;br /&gt;
       stop)&lt;br /&gt;
               killall polling &lt;br /&gt;
               ;;&lt;br /&gt;
       *)&lt;br /&gt;
               exit 1&lt;br /&gt;
               ;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
mkdir /media/drive1/settings&lt;br /&gt;
mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
&lt;br /&gt;
while [ 1 ]; do&lt;br /&gt;
       if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
               mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
               /mod/sbin/bootHDRmode&lt;br /&gt;
       fi&lt;br /&gt;
       sleep 11&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=216</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=216"/>
		<updated>2011-08-18T10:41:31Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, telnet set up, humidify and squashfs-tools packages.&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the /mod/ directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HDR&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs -d HDRfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HDR filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: &lt;br /&gt;
&lt;br /&gt;
Call the script bootHDRmode, and put it in /mod/sbin. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
  &lt;br /&gt;
 #Run this script to load the HDR ELF&lt;br /&gt;
 exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
 ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HDR expects &lt;br /&gt;
 ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HDR expects &lt;br /&gt;
  &lt;br /&gt;
 mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
 mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
 rm -f /tmp/.humaxtv.running&lt;br /&gt;
 touch /tmp/.humaxtv.restart&lt;br /&gt;
 killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;br /&gt;
&lt;br /&gt;
* Now whenever you need to switch to &amp;quot;HDR Mode&amp;quot; to decrypt some recordings, just telnet onto the box and type:&lt;br /&gt;
&lt;br /&gt;
 /mod/sbin/bootHDmode&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039; If the box is recording anything, the recording will halt and may be corrupted. [TODO - make the script detect and warn].&lt;br /&gt;
&lt;br /&gt;
=Further enhancement=&lt;br /&gt;
&lt;br /&gt;
If you frequently want to switch to &amp;quot;HDR mode&amp;quot; to decrypt recordings, it would be nice to be able to do this from the TV without having to telnet on. The method will allow this. Basically run a script that &amp;quot;polls&amp;quot; for the existence of a named folder, and when it finds it, runns the &amp;quot;bootHDRmode&amp;quot; script.&lt;br /&gt;
&lt;br /&gt;
Two scripts are required - one to launch the polling script at startup, and the polling script itself.&lt;br /&gt;
&lt;br /&gt;
Place this script in /mod/etc/init.d called something like S98polling:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
        start)&lt;br /&gt;
                /mod/sbin/polling &amp;amp;   # launch as new process&lt;br /&gt;
                ;;&lt;br /&gt;
        stop)&lt;br /&gt;
                killall polling &lt;br /&gt;
                ;;&lt;br /&gt;
        *)&lt;br /&gt;
                exit 1&lt;br /&gt;
                ;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 exit 0&lt;br /&gt;
 &lt;br /&gt;
The polling script looks like this, and lives in /mod/sbin/polling&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
 mkdir /media/drive1/settings&lt;br /&gt;
 mkdir /media/drive1/settings/bootHDR&lt;br /&gt;
 &lt;br /&gt;
 while [ 1 ]; do&lt;br /&gt;
        if [ -d /media/drive1/bootHDR ]; then&lt;br /&gt;
                mv /media/drive1/bootHDR /media/drive1/settings&lt;br /&gt;
                /mod/sbin/bootHDRmode&lt;br /&gt;
        fi&lt;br /&gt;
        sleep 11&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
This creates a folder called bootHDR on the root of the drive in a &amp;quot;settings&amp;quot; folder. To force the box to reboot in HDR mode, simply move this folder (using the &amp;quot;opt+&amp;quot; button on the remote) to the root of the drive. The script will detect this, move it back to settings for next time, and boot in HDR mode. Again check that no recordings are in progress when doing this!&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=212</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=212"/>
		<updated>2011-08-18T09:52:16Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, telnet set up, humidify and squashfs-tools packages.&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the /mod/ directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HRD&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
 cd /mod&lt;br /&gt;
 humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
 unsquashfs 1.hdfbin-1-000000.raw&lt;br /&gt;
 mv squashfs-root/ HDRfs&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HRD filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: &lt;br /&gt;
&lt;br /&gt;
Call the script bootHDRmode, and put it in /mod/sbin. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
  &lt;br /&gt;
 #Run this script to load the HDR ELF&lt;br /&gt;
 exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
 ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HRD expects &lt;br /&gt;
 ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HRD expects &lt;br /&gt;
  &lt;br /&gt;
 mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
 mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
 rm -f /tmp/.humaxtv.running&lt;br /&gt;
 touch /tmp/.humaxtv.restart&lt;br /&gt;
 killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=211</id>
		<title>Decrypt recordings on the HD-FOX T2</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Decrypt_recordings_on_the_HD-FOX_T2&amp;diff=211"/>
		<updated>2011-08-18T09:38:58Z</updated>

		<summary type="html">&lt;p&gt;Drutt: Created page with &amp;quot;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;On the HD[R]-Fox T2 all recordings (including SD) are encrypted by default. The encryption means they will only play on the box they were recorded on. On the HDR, encryption can be removed by copying the recording to an external drive. This can be a USB drive, or by installing the modified firmware, a virtual drive or networked share also work.&lt;br /&gt;
&lt;br /&gt;
On the HD-Fox T2 however this feature does exist, and copied recordings remain encrypted.&lt;br /&gt;
&lt;br /&gt;
Luckily the HD and HDR hardware is very similar (give or take a hard disk and tuner), and the HD can be persuaded to run the software for the HDR. This then allows recordings to be copied and decrypted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prerequisites:&amp;#039;&amp;#039;&amp;#039; Modified firmware installed, telnet set up, humidify and squashfs-tools packages.&lt;br /&gt;
&lt;br /&gt;
* Firstly download the firmware for the HDR-Fox T2. This can be either the package from Humax, or the modified version.&lt;br /&gt;
* Using FTP, or a network share copy the downloaded file (hdr_fox_t2_upgrade.hdf) over to the box, and place it in the /mod/ directory.&lt;br /&gt;
* Telnet to the box.&lt;br /&gt;
* Install humidify and squshfs tools (&amp;quot;opkg install humidify&amp;quot; and &amp;quot;opkg install squashfs-tools&amp;quot;)&lt;br /&gt;
* Extract the HRD&amp;#039;s root filesystem into the /mod folder on your hard drive with the following commands:&lt;br /&gt;
&lt;br /&gt;
cd /mod&lt;br /&gt;
&lt;br /&gt;
humidify -x -S1 hdr_fox_t2_upgrade.hdf&lt;br /&gt;
&lt;br /&gt;
unsquashfs 1.hdfbin-1-000000.raw&lt;br /&gt;
&lt;br /&gt;
mv squashfs-root/ HDRfs&lt;br /&gt;
&lt;br /&gt;
* Now we just need a script to set up remap a couple of key folders to the HRD filesystem, set up some folders how the HDR expects, kill the running HD execuatable and launch the HDR version: &lt;br /&gt;
&lt;br /&gt;
Call the script bootHDRmode, and put it in /mod/sbin. Its contents should be:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
  &lt;br /&gt;
 #Run this script to load the HDR ELF&lt;br /&gt;
 exec &amp;gt;/tmp/loadhdr.log 2&amp;gt;&amp;amp;1 #output errors to this file&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd1/&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd2/&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd3/&lt;br /&gt;
 mount -t ext3 /dev/sda1 /mnt/hd4/&lt;br /&gt;
 ln -s /media/drive1/Video/ /media/drive1/My\ Video    # link HD Video directory into &amp;quot;My Video&amp;quot; as HRD expects &lt;br /&gt;
 ln -s /media/drive1/Audio/ /media/drive1/My\ Music    # link HD Audio directory into &amp;quot;My Music&amp;quot; as HRD expects &lt;br /&gt;
  &lt;br /&gt;
 mount /mnt/hd2/mod/HDRfs/usr/ /usr/            # map HDR elf and key data over the root&lt;br /&gt;
 mount /mnt/hd2/mod/HDRfs/opt/ /opt/&lt;br /&gt;
  &lt;br /&gt;
 rm -f /tmp/.humaxtv.running&lt;br /&gt;
 touch /tmp/.humaxtv.restart&lt;br /&gt;
 killall humaxtv    #kill HD, will automatically restart but this time the HDR&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.hummy.tv/w/index.php?title=Main_Page&amp;diff=210</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.hummy.tv/w/index.php?title=Main_Page&amp;diff=210"/>
		<updated>2011-08-18T08:43:50Z</updated>

		<summary type="html">&lt;p&gt;Drutt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Note|This wiki is currently very much under construction. Content will appear here as it is added. Please feel free to contribute!}}&lt;br /&gt;
&lt;br /&gt;
For more help and advice, visit [http://hummy.tv/ hummy.tv]&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; Welcome to the ‘Modified’ Firmware Pages for Humax HDR FOX T2 and HD FOX T2 &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Please note that the Modified firmware detailed on these pages is not a stand alone replacement for the original firmware. As its name suggests, it modifies the original software. Because of this, original software of the correct version level &amp;#039;&amp;#039;&amp;#039;MUST&amp;#039;&amp;#039;&amp;#039;  be installed before the modified version is overlaid onto it.&lt;br /&gt;
&lt;br /&gt;
For example modified firmware &amp;#039;&amp;#039;HDR_FOX_T2_1.02.20_mod_1.09_upgrade.hdf&amp;#039;&amp;#039; must only be installed over original firmware version 1.02.20.&lt;br /&gt;
 &lt;br /&gt;
To check the current firmware version on your Humax enter MENU &amp;gt;&amp;gt; SETTINGS &amp;gt;&amp;gt; SYSTEM &amp;gt;&amp;gt;  SYSTEM INFORMATION &amp;gt;&amp;gt; SOFTWARE VERSION&lt;br /&gt;
&lt;br /&gt;
Download the latest [https://sites.google.com/a/humaxonline.co.uk/beta/downloads/posts.xml original firmware from Humax]&lt;br /&gt;
&lt;br /&gt;
Download the matching [http://www.hummy.tv/forum/threads/customised-hdf-file-released.232/ modified firmware from hummy.tv]&lt;br /&gt;
&lt;br /&gt;
Continue to [[Install Modified Firmware]]&lt;br /&gt;
&lt;br /&gt;
== HOW-TOs ==&lt;br /&gt;
&lt;br /&gt;
*[[Install Modified Firmware]]&lt;br /&gt;
&lt;br /&gt;
*[[View Initial Setup]]&lt;br /&gt;
&lt;br /&gt;
*[[Install Full Web Interface]]&lt;br /&gt;
&lt;br /&gt;
*[[Manually loading Features from USB]]&lt;br /&gt;
&lt;br /&gt;
*[[Compile Software for the Humax]]&lt;br /&gt;
&lt;br /&gt;
*[[Create Packages]]&lt;br /&gt;
&lt;br /&gt;
*[[Decrypt recordings on the HD-FOX T2]]&lt;br /&gt;
&lt;br /&gt;
== Help ==&lt;br /&gt;
&lt;br /&gt;
*[[Features Available]]&lt;br /&gt;
&lt;br /&gt;
*[[FAQs]]&lt;br /&gt;
&lt;br /&gt;
*[[Glossary Of Terms]]&lt;br /&gt;
&lt;br /&gt;
*[[Useful Links]]&lt;/div&gt;</summary>
		<author><name>Drutt</name></author>
		
	</entry>
</feed>