mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 16:07:51 +00:00
samba: simplyfing init script, use system config file
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
7a010ba2a5
commit
ef9833b4dc
@ -22,11 +22,9 @@
|
|||||||
#
|
#
|
||||||
# runlevels: openelec, textmode
|
# runlevels: openelec, textmode
|
||||||
|
|
||||||
OPENELEC_SETTINGS="$HOME/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml"
|
|
||||||
|
|
||||||
(
|
(
|
||||||
if [ -f "$OPENELEC_SETTINGS" ]; then
|
if [ -f /var/config/settings.conf ]; then
|
||||||
SAMBA_START=`grep SAMBA_START $OPENELEC_SETTINGS | awk '{print $3 }' | sed -e "s,value=,," -e "s,\",,g"`
|
. /var/config/settings.conf
|
||||||
|
|
||||||
if [ "$SAMBA_START" = "true" ]; then
|
if [ "$SAMBA_START" = "true" ]; then
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user