Permalink
Browse files

Merge branch 'testing'

  • Loading branch information...
2 parents a1a2411 + 5b3feb7 commit f6e9fb7ecc2c9b5b4c5a5a9d182529a61bcff009 @klou committed Nov 22, 2013
Showing with 3 additions and 4 deletions.
  1. +3 −4 hack/boxee/skin/boxee/720p/scripts/boxeehack_settings.py
@@ -424,20 +424,19 @@ def get_xbmc_found():
found = common.file_get_contents('/data/etc/.xbmc_found')
return found
-# Reads /data/hack/boot.sh to see if the checkxbmc.sh line is commented out
+# reads the xbmc-boot flag
def get_boot_to_xbmc_enabled():
bootenabled = common.file_get_contents('/data/etc/.boot_to_xbmc_enabled')
return bootenabled
-# Changes /data/hack/boot.sh to enable or disable checkxbmc.sh
+# Toggles the boot flag
def toggle_boot_to_xbmc():
bootenabled = get_boot_to_xbmc_enabled()
if bootenabled == "1":
bootenabled = "0"
- common.file_put_contents("/data/etc/.boot_to_xbmc_enabled", "0")
else:
bootenabled = "1"
- common.file_put_contents("/data/etc/.boot_to_xbmc_enabled", "1")
+ common.file_put_contents("/data/etc/.boot_to_xbmc_enabled", bootenabled)
common.set_string("boot-to-xbmc", bootenabled)
# Displays README-style instructions

0 comments on commit f6e9fb7

Please sign in to comment.