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,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