From: Michael Mrozek Date: Sun, 20 Oct 2013 16:57:11 +0000 (+0200) Subject: pandora-first-run-wizard: Add enable / disable TV Out on Startup-Dialog X-Git-Tag: sz_160~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d21a84c878174b0de4eeee969df91fc6d44d466;p=openpandora.oe.git pandora-first-run-wizard: Add enable / disable TV Out on Startup-Dialog --- diff --git a/recipes/pandora-system/pandora-first-run-wizard.bb b/recipes/pandora-system/pandora-first-run-wizard.bb index 401d005..01bc68a 100755 --- a/recipes/pandora-system/pandora-first-run-wizard.bb +++ b/recipes/pandora-system/pandora-first-run-wizard.bb @@ -6,7 +6,7 @@ RDEPENDS = "hsetroot zenity dbus pandora-wallpaper-official tslib tslib-calibrat COMPATIBLE_MACHINE = "omap3-pandora" -PR = "r49" +PR = "r50" SRC_URI = " \ file://first-run-wizard.sh \ diff --git a/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh b/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh index 7cb2868..fa80d02 100755 --- a/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh +++ b/recipes/pandora-system/pandora-first-run-wizard/first-run-wizard.sh @@ -295,6 +295,19 @@ if [ "$pnd_version" == "1GHz" ]; then esac +#Enable / Disable TV Out on Startup + +if zenity --question --title="TV Out on startup" --text="Do you want to enable the TV Output on startup?\n(Note: This needs a bit more power)" --ok-label="Enable TV Out" --cancel-label="Disable TV Out"; then + touch /etc/pandora/conf/tvout.state + zenity --info --title="TV Out" --text "TV Out will be switched on with the last saved settings on bootup." --timeout 6 + else + /usr/pandora/scripts/op_tvout.sh -d + if [ -f /etc/pandora/conf/tvout.state ]; then + rm /etc/pandora/conf/tvout.state + fi + zenity --info --title="TV Out" --text "TV Out will not be switched on on bootup." --timeout 6 +fi + # ---- # NOTE: This is just a temporary fix! These daemons should be removed from startup in the OE recipes. Until the time is found, we'll do it from here.