2010-05-16 10:08:15 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
################################################################################
|
2011-01-09 15:57:07 +01:00
|
|
|
# This file is part of OpenELEC - http://www.openelec.tv
|
2012-02-29 13:11:22 +01:00
|
|
|
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
2010-05-16 10:08:15 +02:00
|
|
|
#
|
|
|
|
|
# This Program is free software; you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
# any later version.
|
|
|
|
|
#
|
|
|
|
|
# This Program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
2012-02-29 13:11:22 +01:00
|
|
|
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
2010-05-16 10:08:15 +02:00
|
|
|
# http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
################################################################################
|
2009-03-18 21:16:49 +01:00
|
|
|
|
2012-01-25 15:22:26 +01:00
|
|
|
if [ -f /etc/oem.conf ]; then
|
|
|
|
|
. /etc/oem.conf
|
|
|
|
|
fi
|
|
|
|
|
|
2010-05-18 14:35:58 +02:00
|
|
|
. /etc/profile
|
|
|
|
|
|
2012-05-03 22:57:23 +02:00
|
|
|
# showing version
|
|
|
|
|
lsb_release
|
|
|
|
|
|
2012-02-24 08:16:36 +01:00
|
|
|
# starting init scripts for wanted runlevel
|
2010-05-18 14:35:58 +02:00
|
|
|
progress "Starting Init Scripts"
|
|
|
|
|
RET=0
|
|
|
|
|
|
2011-09-12 19:29:16 +02:00
|
|
|
for script in /etc/init.d/*; do
|
|
|
|
|
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
|
2011-01-09 03:48:28 +01:00
|
|
|
. $script
|
2010-05-18 14:35:58 +02:00
|
|
|
S_RET=$?
|
|
|
|
|
test $S_RET -ge $RET && RET=$S_RET
|
|
|
|
|
fi
|
|
|
|
|
done
|