mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 15:37:49 +00:00
Revert "samba: start init scripts on RUNLEVEL=boot"
This reverts commit 441cc44cc198c63302bcf11bc1aeea95e7b6b267.
This commit is contained in:
parent
92c250ae60
commit
d2443b373f
@ -22,12 +22,7 @@
|
|||||||
#
|
#
|
||||||
# runlevels: openelec, textmode
|
# runlevels: openelec, textmode
|
||||||
|
|
||||||
SMB_USERCONF="/storage/.config/samba.conf"
|
(
|
||||||
SMB_DEFCONF="/etc/samba/smb.conf"
|
|
||||||
|
|
||||||
case $RUNLEVEL in
|
|
||||||
boot)
|
|
||||||
(
|
|
||||||
if [ -f /var/config/settings.conf ]; then
|
if [ -f /var/config/settings.conf ]; then
|
||||||
. /var/config/settings.conf
|
. /var/config/settings.conf
|
||||||
|
|
||||||
@ -37,6 +32,9 @@ case $RUNLEVEL in
|
|||||||
|
|
||||||
progress "Starting Samba server"
|
progress "Starting Samba server"
|
||||||
|
|
||||||
|
SMB_USERCONF="/storage/.config/samba.conf"
|
||||||
|
SMB_DEFCONF="/etc/samba/smb.conf"
|
||||||
|
|
||||||
if [ -f $SMB_USERCONF ]; then
|
if [ -f $SMB_USERCONF ]; then
|
||||||
SMB_ARG="--configfile=$SMB_USERCONF"
|
SMB_ARG="--configfile=$SMB_USERCONF"
|
||||||
else
|
else
|
||||||
@ -48,9 +46,4 @@ case $RUNLEVEL in
|
|||||||
nmbd --daemon $SMB_ARG > /dev/null 2>&1
|
nmbd --daemon $SMB_ARG > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
)&
|
)&
|
||||||
;;
|
|
||||||
|
|
||||||
poweroff|reboot)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user