mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +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
|
# 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
|
||||||
@ -32,9 +37,6 @@
|
|||||||
|
|
||||||
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
|
||||||
@ -47,3 +49,8 @@
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
)&
|
)&
|
||||||
|
;;
|
||||||
|
|
||||||
|
poweroff|reboot)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user