unifios-utilities icon indicating copy to clipboard operation
unifios-utilities copied to clipboard

How to run scripts before "mnt/data" directory mounts?

Open EntropySmoke opened this issue 4 years ago • 0 comments

There are 2 script files that reset UDM to factory settings:

  • Factory-Reset.sh
  • Real-Factory-Reset.sh

I think both scripts are located in "etc/init.d" directory. Using "Factory-Reset.sh" is just like using UDM's GUI "Factory Reset" option. Running "Real-Factory-Reset.sh" script results in an error about not being able to unmount "mnt/data" directory.

UDM-Utilities On-Boot tool runs from one of "mnt/data" sub-directories. I think that is why placing "Real-Factory-Reset.sh" in UDM-Utilities on-boot directory results in the same error about not being able to unmount "mnt/data" directory to properly run the script.

Is it possible to use UDM-Utilities On-Boot tool from a different directory to run "Real-Factory-Reset.sh" script before "mnt/data" directory is mounted? Can UDM-Utilities itself include a "Full Factory Wipe" feature in the future?

Both reset files are attached in TXT format. Factory-Reset.txt Real-Factory-Reset.txt

EntropySmoke avatar Sep 23 '21 12:09 EntropySmoke