mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
samba: start init scripts on RUNLEVEL=boot
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
997ef7c3b9
commit
441cc44cc1
@ -22,6 +22,11 @@
|
||||
#
|
||||
# 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
|
||||
. /var/config/settings.conf
|
||||
@ -32,9 +37,6 @@
|
||||
|
||||
progress "Starting Samba server"
|
||||
|
||||
SMB_USERCONF="/storage/.config/samba.conf"
|
||||
SMB_DEFCONF="/etc/samba/smb.conf"
|
||||
|
||||
if [ -f $SMB_USERCONF ]; then
|
||||
SMB_ARG="--configfile=$SMB_USERCONF"
|
||||
else
|
||||
@ -47,3 +49,8 @@
|
||||
fi
|
||||
fi
|
||||
)&
|
||||
;;
|
||||
|
||||
poweroff|reboot)
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user