View Single Post
Old 06-05-2012, 03:57 PM   #1
Wermesz
Junior Member
Wermesz began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2012
Device: iriver Story HD
Story HD Mod: SHD Exec

Hi,

Warning: This mod works fine for me, but I can't guarantee it will work for you. Use at your own risk! (frostschutz template)

To use this mod you need to have the Webportal Mod first (http://www.mobileread.com/forums/sho...d.php?t=169741).

Story HD Execution - this mod can be used to execute scripts/apps that are stored in the internal memory of the device or on the sd card.
Warning: The scripts/apps are being run as root so be careful when running your own scripts/apps and read the warnings for the included ones because one mistake can brick your device!!!

Two programs are included:

Story HD Synchronization - the script is using wget to synchronize local folders with remote ones. It checks the local folder for files that do not longer exist in the remote one and deletes them. After that it downloads the files from remote folder to the local folder. A local file will be updated if the remote one is never. The script uses its owm cross compiled wget binary (busybox wget is very poor). The script can be configured to synchronize several folders and is capable of synchronizing them recursively. The example configuration synchronizes two ftp folders from gnu (not much data can be used as a check). In order to put your own configuration you have to edit the script (should be improved in next versions) and create the local folder.
Warning: The script deletes the files and directories from the local directory that do not exist in the remote directory so be really careful while selecting it (for example if you put / as the local directory the script will permanently delete your system and the device will be bricked)!!!

Story HD Telenetd Control - the script is used to start and stop the telenetd daemon on the device
Warning: After connecting to the device you are logged as root so be careful!!!

The programs that can be run are not harcoded. What should be run is being parsed from GET and POST arrays provided by the webbrowser so if you want to execute your own app you do not need to install a mod anymore. Everything you need to do is put you app into the internal memory or on the sd card and modify the webportal.html file. From my side it would be nice if someone would manage to integrate an email client to the Story HD

In order to install the mod and attached scripts you need to:
1. Download the storyeb07-shd_exec_v1.zip and unpack it
2. Rename the unpacked file to storyeb07.hex
3. Copy it to the internal memory of your Story HD device
4. Download the shd_exec_base_dir_v1.1.zip file
5. Unpack it to the internal memory of your Story HD device or the sd card
6. Add the following lines to webportal.html
If you want to run from internal memory
Code:
<div style="border-style: solid;">
  <div style="font-weight: bold;">SHD Exec</div>
    SHD Sync&nbsp;&nbsp;<a style="text-decoration: none;" href="cgi-bin/shd_exec?MOVIFAT&shd_sync&shd_sync.sh">Start</a><br>
    SHD Telnetd Ctrl&nbsp;&nbsp;
	<a style="text-decoration: none;" href="cgi-bin/shd_exec?MOVIFAT&shd_telnetd_ctrl&shd_telnetd_ctrl.sh&start">Start</a>&nbsp;
	<a style="text-decoration: none;" href="cgi-bin/shd_exec?MOVIFAT&shd_telnetd_ctrl&shd_telnetd_ctrl.sh&stop">Stop</a><br>
  </div><br>
If you want to run from the sd card
Code:
<div style="border-style: solid;">
  <div style="font-weight: bold;">SHD Exec</div>
    SHD Sync&nbsp;&nbsp;<a style="text-decoration: none;" href="cgi-bin/shd_exec?SDFAT&shd_sync&shd_sync.sh">Start</a><br>
    SHD Telnetd Ctrl&nbsp;&nbsp;
	<a style="text-decoration: none;" href="cgi-bin/shd_exec?SDFAT&shd_telnetd_ctrl&shd_telnetd_ctrl.sh&start">Start</a>&nbsp;
	<a style="text-decoration: none;" href="cgi-bin/shd_exec?SDFAT&shd_telnetd_ctrl&shd_telnetd_ctrl.sh&stop">Stop</a><br>
  </div><br>
7. Unmount from the computer

Special thanks to frostschutz!

Br,
Wermesz
Attached Files
File Type: zip storyeb07-shd_exec_v1.zip (589 Bytes, 147 views)
File Type: zip shd_exec_base_dir_v1.1.zip (434.2 KB, 153 views)

Last edited by Wermesz; 06-10-2012 at 06:29 AM.
Wermesz is offline   Reply With Quote