Rename Folder with Deb Script

August 10th, 2022

Hey guys, i’m trying to make a deb file which contains a theme for sbsettings but i want to rename a folder that is already in the themes folder located on iphone so i don’t lose anything, and when i uninstall the package, the folder that i renamed before will return back to it’s original name. I found on the internet that the “mv” command can do that but it’ doesn’t work for some reason.
eg: mv /var/mobile/Library/SBSettings/Themes/OriginalFolderName /var/mobile/Library/SBSettings/NewFolderName
The above command doesn’t wok.
What am i doing wrong?
Thanks.

Answer #1
That is the command to rename. Please note you are renaming it and moving it outside of the Themes folder (since /Themes/ is not in the second half of the command).
Are you getting any errors when doing this? If not, you will need to strace it:
strace mv /path/to/oldfilename /path/to/newfilename
This will show you the system calls and you can see where it goes wrong, it will be towards the end. If strace is not installed, should be available via your package manager, I assume apt-get.

 

| Sitemap |