mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
samba: install the same config on system and user config dir
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
236436c9d8
commit
0343f1f828
@ -1,125 +0,0 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
# samba.conf
|
||||
|
||||
# This configuration file allows you to customize the samba shares
|
||||
# available from your machine
|
||||
|
||||
[global]
|
||||
server string = Media Centre(%i)
|
||||
workgroup = WORKGROUP
|
||||
netbios name = openelec
|
||||
security = share
|
||||
guest account = root
|
||||
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
|
||||
wins support = yes
|
||||
syslog only = yes
|
||||
name resolve order = lmhosts wins bcast host
|
||||
|
||||
# Using the following configurations as a template allows you to add
|
||||
# writable shares of disks and paths under /storage
|
||||
|
||||
[Update]
|
||||
path = /storage/.update
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/.update
|
||||
|
||||
[Videos]
|
||||
path = /storage/videos
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/videos
|
||||
|
||||
[Music]
|
||||
path = /storage/music
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/music
|
||||
|
||||
[TV Shows]
|
||||
path = /storage/tvshows
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/tvshows
|
||||
|
||||
[Downloads]
|
||||
path = /storage/downloads
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/downloads
|
||||
|
||||
[Pictures]
|
||||
path = /storage/pictures
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/pictures
|
||||
|
||||
[Emulators]
|
||||
path = /storage/emulators/mame/roms
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/emulators/mame/roms
|
||||
|
||||
[Configfiles]
|
||||
path = /storage/.config
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/.config
|
||||
|
||||
[Userdata]
|
||||
path = /storage/.xbmc/userdata
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/.xbmc/userdata
|
||||
|
||||
[Screenshots]
|
||||
path = /storage/screenshots
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/screenshots
|
||||
|
||||
[Logfiles]
|
||||
path = /storage/logfiles
|
||||
available = yes
|
||||
browsable = yes
|
||||
public = yes
|
||||
writable = yes
|
||||
root preexec = mkdir -p /storage/logfiles
|
@ -40,7 +40,7 @@ if [ "$SAMBA_SERVER" = "yes" ]; then
|
||||
cp $PKG_DIR/config/smb.conf $INSTALL/etc/samba
|
||||
|
||||
mkdir -p $INSTALL/usr/config
|
||||
cp $PKG_DIR/config/samba.conf.sample $INSTALL/usr/config
|
||||
cp $PKG_DIR/config/smb.conf $INSTALL/usr/config/samba.conf.sample
|
||||
|
||||
mkdir -p $INSTALL/etc/init.d
|
||||
cp $PKG_DIR/scripts/* $INSTALL/etc/init.d
|
||||
|
Loading…
x
Reference in New Issue
Block a user