Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ksmbd-tools: append config from /var/run/config/ for runtime shares
Dynamically created shares shouldn't be stored in the /etc/config/ because of: 1. Flash wearing 2. Risk of inconsistent state on reboots With this change all automation/hotplug.d scripts can store runtime in the /var/run/config/samba. It's useful e.g. for USB drives that user wants to be automatically shared. Also: automated scripts should never call "uci [foo] commit" as that could flush incomplete config. This problem also gets solved. Identical feature was added to samba36 in the OpenWrt commit 5a59e2c ("samba36: append config from /var/run/config/ for runtime shares") but wasn't ported to ksmbd until now. Cc: Jo-Philipp Wich <[email protected]> Signed-off-by: Rafał Miłecki <[email protected]>
- Loading branch information