samtap / fang-hacks

Collection of modifications for the XiaoFang WiFi Camera
1.67k stars 340 forks source link

How to uninstall fang hack? #446

Open madmax2 opened 3 years ago

madmax2 commented 3 years ago

There is no mention in the documentation/readme on how to uninstall fang hack.

Would be good if this was added to the documentation

TurfnSurf commented 3 years ago

Just remove the SD card.

elig0n commented 3 years ago
Small system modifications are made when you click Apply on the status page:
    A modified sdcard hotplug script is placed on the device to automatically mount ext2 volumes.
    Modified rc.local and rcS scripts are placed in /etc/init.d to enable hacks when the device is rebooted. It also disables copying original files from /root/etc_default to prevent overwriting changes to files in /etc. This poses a risk so always be extra careful when editing files in /etc
    The fang_hacks.sh script and cfg file are placed in /etc.

To clean the device and restore it to its original mode one need to undo these operations. For example remove all /etc/fang_hacks.* , copy /root/etc_default/rcS and /root/etc_default/rc.local over /etc/init.d/ etc...

greensouth commented 3 years ago

Same problem, can PLEASE someone with a clean system, upload a copy of the unix system so we can at least compare and restore the critical files?

At least init.d/rc.local and rcS.

Since I did the hack, the QR isn't linking with the app anymore. An added problem is that it is an Ismartalarm spot, so it is even more difficult to find a back up.