CH3SNAS:Tutorials/Remove fun plug
From NAS-Tweaks
If you only want to temporarily deactivate fun_plug, simply rename the file fun_plug in the topmost directory of your CH3SNAS, reboot, and you are done.
But there could be cases where you want to completely remove fun_plug. Because the folder containing the fun_plug packages is owned by user root, this folder can only be deleted by root. This can be done by a single rm (remove) command in a PuTTY (ssh) terminal session if you are log in as root. You may want to see [1] for information about the special role of the root user.
But let's assume pessimistically that that doesn't work because the ssh server is not running or because you have problems logging in as root. Fortunately, the fun_plug script is no owned by root can still be modified by non-root users. This enables a trick to remove the folders without using root privileges: simply add commands for the removal of the fun_plug folder and the fun_plug script to the script itself. These commands will be executed under root privileges during the next reboot.
Note that the folder may be named either ffp or fun_plug.d - depending on the version of fun_plug that you have installed.
Contents |
Script
You have to select the right script. This depends on your version of fun_plug. You can tell which version you have by checking the Volume_1 share:
- If you find a folder named
ffp(for fun_plug version 0.5 and higher), use the script namedffp. - If you find a folder named
fun_plug.d(for fun_plug version 0.1 to 0.4), use the script namedfun_plug.d.
ffp version
Download the remove_ffp script here. The script contains:
#!/bin/sh rm -R /mnt/HD_a2/ffp rm /mnt/HD_a2/ffp.log rm /mnt/HD_a2/fun_plug
This removes the contents of the ffp folder, the log file and the fun_plug script itself.
fun_plug.d version
Download the remove_fun_plug.d script here. This script contains:
#!/bin/sh rm -R /mnt/HD_a2/fun_plug.d rm /mnt/HD_a2/ffp.log rm /mnt/HD_a2/fun_plug
This removes the contents of the fun_plug.d folder, the log file and the fun_plug script itself.
Installation and execution
Rename the downloaded script to fun_plug and copy it to the NAS in the topmost directory of Volume_1. This will probably overwrite a existing script file fun_plug.
Reboot the CH3SNAS by holding down the power button 5 seconds or via the web interface (Tools -> System -> Reboot). During the reboot, fun_plug will be completely removed.
