mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
samba: always start if not cinfigured via settings addon
This commit is contained in:
parent
53c6429d91
commit
246f507f74
3
packages/network/samba/default.d/samba.conf
Normal file
3
packages/network/samba/default.d/samba.conf
Normal file
@ -0,0 +1,3 @@
|
||||
SAMBA_USERNAME="openelec"
|
||||
SAMBA_PASSWORD="openelec"
|
||||
SAMBA_SECURE="false"
|
@ -177,6 +177,10 @@ makeinstall_target() {
|
||||
enable_service nmbd.service
|
||||
enable_service smbd.service
|
||||
|
||||
mkdir -p $INSTALL/usr/share/services
|
||||
cp -P $PKG_DIR/default.d/*.conf $INSTALL/usr/share/services
|
||||
enable_service samba-defaults.service
|
||||
|
||||
mkdir -p $INSTALL/usr/lib/samba
|
||||
cp $PKG_DIR/scripts/samba-config $INSTALL/usr/lib/samba
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
[Unit]
|
||||
Description=Samba configfile writer
|
||||
After=local-fs.target
|
||||
After=local-fs.target samba-defaults.service
|
||||
Requires=samba-defaults.service
|
||||
|
||||
ConditionPathExists=/storage/.cache/services/samba.conf
|
||||
|
||||
|
11
packages/network/samba/system.d.opt/samba-defaults.service
Normal file
11
packages/network/samba/system.d.opt/samba-defaults.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Samba defaults
|
||||
After=local-fs.target
|
||||
|
||||
ConditionPathExists=!/storage/.cache/services/samba.conf
|
||||
ConditionPathExists=!/storage/.cache/services/samba.disabled
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c 'cp /usr/share/services/samba.conf /storage/.cache/services'
|
||||
RemainAfterExit=yes
|
Loading…
x
Reference in New Issue
Block a user