Since quite a while i am told that certain devices of D-Link have a bug in their firmware. This bug sets chmod 777 on all disks on reboot which prevents the fun_plug on these devices to start properly. SSH-Server is not starting and all other services are started which uses a lot of resources.
To prevent that bug, i have developed a solution which is based on the idea of KyleK My Package replaces /bin/chmod by a script which checks if it is called with 777 and on a directory of the harddisks (/mnt/USB/USB* or /mnt/HD/HD*). If that happens, this is prevented. If the command is a normal one, it is executed.
Important Note: With Non-Dlink-Devices the installation is simply not executed, on these it is no issue to install that script as it simply doesn’t execute.
Now install the package from my repository (Attention: This will fail on OABI Devices as it is not required there! Simply skip this step then!):
slacker -UaA uli:uwchmod
Thats it 🙂
Hint: If you upgrade your firmware, you need to reinstall the script as it is removed during such a upgrade.
Since quite a while i was often asked if there is a possibility to store entries into crontab permanently on NAS devices with fun_plug. That is not that easy as the devices reset their crontab to the default one on every reboot. Therefore you need to add the entries every time the device reboots. I have now developed a script which automates that for your convenience. Continue reading uwcron: Cron for the fun_plug
Today i’ve installed java on my NAS Device (a D-Link DNS-345) what i personally see as a highlight as i can now use software that was not available to me before. Oracle provides a “Java SE Embedded”, which is suitable for NAS devices thanks to its reduced memory footprint. For the following tutorial you need to have fun_plug installed!
Go to the Oracle Page and choose “ARMv5 Linux – Headless”. Now you will be redirected to a survey, where you have to enter Name, Prename, Mail, Organization and Role. Then you will receive the download-Link via E-Mail. Click on this Link and accept the license agreement.
Copy the downloaded file (in my case its name was ejre-7u6-fcs-b24-linux-arm-sflt-headless-10_aug_2012.tar.gz, but that is subject to change) to the NAS. I’ve copied it to /mnt/HD/HD_a2/, please adapt the following commands if you copy it elsewhere.