From e0e77267e249641c009c6f29a99bf290a384069f Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Thu, 14 Dec 2017 17:58:59 +0000 Subject: [PATCH] samba: auto-share .kodi.FAILED folder as Kodi-Failed --- packages/network/samba/scripts/smbd-config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/network/samba/scripts/smbd-config b/packages/network/samba/scripts/smbd-config index a3df4ddc85..d381ae8c0b 100755 --- a/packages/network/samba/scripts/smbd-config +++ b/packages/network/samba/scripts/smbd-config @@ -40,6 +40,11 @@ if [ "$SAMBA_AUTOSHARE" == "true" ] ; then done fi +# Allow access to a "failed" (safe mode) Kodi installation +if [ -d /storage/.kodi.FAILED ]; then + echo -e "[Kodi-Failed]\n path = /storage/.kodi.FAILED\n available = yes\n browsable = yes\n public = yes\n writable = yes\n" >> $SMB_CONF +fi + ADD_CONFIG= # If workgroup is not set, don't set it - who knows, user may know better.