-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT: Add smbd
to Tweaks for Samba file sync
#973
Conversation
There's currently an issue, where if runtime.sh starts the process it all works fine, but if tweaks starts it, it does not. (This seems wrong has runtime.sh is the parent of tweaks). The current code on this branch requires you to: Open tweaks Turn samba on Exit tweaks This causes a naturally start to Samba. If you remove start_smbd from check function, and move line 135 down into check_smbdstate it causes a situation where smbd will start but the shares aren't browsable. If you add a call to "check" function in "check_smbdstate" it also doesn't work.. the call to start needs to come from runtime.sh It's either an env var issue or a permissions issue.
…cluded. Path is set when starting bin, no need to possibly add this many libs to our path.
When runtime.sh starts smbd directory access is restored. Currently tweaks cannot start smbd instantly (on on exit)
Preloading libpadsp.so (which is inherited from the parent shell) is the cause for the issues with smbd not displaying subdirectories, why? i don't know - either libpadsp.so contains conflicting symbols or it breaks the environment that smbd spawns in somehow.
Test process number 1 complete on 215 - Looking like bc3f576 has resolved directory issues. |
Will build a dynamic list based on what's in smbc.conf
Changed how we handle disabling shares within smb.conf and added function to detect which shares are enabled.
Added some functions to allow management of the shares instantly - smbcontrol didn't end up being requiredas smbd is actively watching the config file (or appears to be, changes are instant)
|
All done ✅ |
smbd
to Tweaks for Samba file sync
I have the latest beta on miyoo mini plus but no samba in "tweaks" menu |
The latest beta is not the same as the main branch, Samba will be included in the next beta realease. |
Samba
Allows for the use of networked folder access.
Features/additions:
Issues
Currently only works correctly if the call to start it comes from runtime.sh. There seems to be an environment/permissions issue which causes smbd to run but not allow access into subdirectories.~ Confirmed fixed.#973 (comment)
TO-DO
rootSD
by defaultshares
toggles in Tweaks (possibly dynamically from the contents ofsmb.conf
)Test process
ls
touch
command is madecat
the file on the MMP - make sure changes synchroniseMedia