samba: start init scripts on RUNLEVEL=boot

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-09-07 23:10:56 +02:00
parent 997ef7c3b9
commit 441cc44cc1

View File

@ -22,7 +22,12 @@
# #
# 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
@ -46,4 +48,9 @@
nmbd --daemon $SMB_ARG > /dev/null 2>&1 nmbd --daemon $SMB_ARG > /dev/null 2>&1
fi fi
fi fi
)& )&
;;
poweroff|reboot)
;;
esac