No title Revision 343334613134 (Wed Oct 07 2009 at 09:00) - Diff Link to this snippet: https://friendpaste.com/1DWFdkL9xtCR9mBXF5XQZL Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 12345678910111213141516171819202122232425262728293031start on startupconsole outputpre-start exec stop usplashrespawnscript 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 fiend script