Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

New upstart job using uxlaunch

  • Loading branch information...
commit c3f84077d1068b3cc3d276b1fd21f45bd2f8b511 1 parent a717c3b
lcapriotti authored April 07, 2011

Showing 1 changed file with 4 additions and 37 deletions. Show diff stats Hide diff stats

  1. 41  debian/xbmc-live.upstart
41  debian/xbmc-live.upstart
... ...
@@ -1,6 +1,7 @@
1 1
 # xbmc-live
2 2
 #
3  
-# init XBMC environment and starts XBMC in fullscreen (if asked to do so)
  3
+# init XBMC environment
  4
+#
4 5
 
5 6
 #      Copyright (C) 2005-2008 Team XBMC
6 7
 #      http://www.xbmc.org
@@ -23,19 +24,15 @@
23 24
 description     "XBMCLive"
24 25
 author          "Luigi Capriotti"
25 26
 
26  
-start on (filesystem and stopped udevtrigger)
  27
+start on starting uxlaunch
27 28
 
28 29
 stop on runlevel [06]
29 30
 
30  
-emits starting-x
31  
-
32  
-pre-start script
  31
+script
33 32
 	get_opt() {
34 33
 		echo "$@" | cut -d "=" -f 2
35 34
 	}
36 35
 
37  
-	clear >/dev/tty7 || true
38  
-
39 36
 	CMDLINE=$(cat /proc/cmdline)
40 37
 
41 38
 	#Process command line options
@@ -78,34 +75,4 @@ pre-start script
78 75
 	        $hook $BOOTMEDIAMOUNTPOINT $XBMC_PARAMS  || true
79 76
 	  done
80 77
 	fi
81  
-
82  
-	if [ -f /home/$xbmcUser/.xsession ] ; then
83  
-		rm /home/$xbmcUser/.xsession
84  
-	fi
85  
-	if [ -f /tmp/noRestartXBMC ] ; then
86  
-		rm /tmp/noRestartXBMC
87  
-	fi
88  
-end script
89  
-
90  
-script
91  
-	if ! grep -i -q autostart /tmp/xbmcliveParams ; then
92  
-		exit
93  
-	fi
94  
-
95  
-	exec /usr/bin/runXBMC
96  
-end script
97  
-
98  
-pre-stop script
99  
-	touch /tmp/noRestartXBMC
100  
-	rm /tmp/xbmcliveParams
101  
-
102  
-	# Clean up the console before we switch to it, to avoid text flicker
103  
-	if [ -x /usr/bin/tput ] ; then
104  
-		tput -Tlinux reset > /dev/tty1 || true
105  
-		tput -Tlinux reset > /dev/tty8 || true
106  
-	fi
107  
-
108  
-	# Clear VT 1 & 8 of any console messages
109  
-	clear >/dev/tty1 || true
110  
-	clear >/dev/tty8 || true
111 78
 end script

0 notes on commit c3f8407

Please sign in to comment.
Something went wrong with that request. Please try again.