Revision 343334613134 () - Diff

Link to this snippet: https://friendpaste.com/1DWFdkL9xtCR9mBXF5XQZL
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
start on startup

console output

pre-start exec stop usplash

respawn

script
get_opt() {
echo "$@" | cut -d "=" -f 2
}

CMDLINE=$(cat /proc/cmdline)

#Process command line options
XBMC_PARAMS=""
for i in ${CMDLINE}; do
case "${i}" in
xbmc\=*)
XBMC_PARAMS=$(get_opt $i)
;;
esac
done

if [ ! `echo "${XBMC_PARAMS}" | grep autorun` ]; then
if [ `echo "${XBMC_PARAMS}" | grep install` ]; then
exec /usr/bin/installXBMC
fi
fi
end script