.xinitrc: Made overclocking warning more generic
authorMichael Mrozek <EvilDragon@openpandora.de>
Wed, 27 Jun 2012 01:28:05 +0000 (03:28 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Wed, 27 Jun 2012 01:28:05 +0000 (03:28 +0200)
recipes/pandora-system/pandora-skel.bb
recipes/pandora-system/pandora-skel/.xinitrc

index 1155032..ae6f37b 100644 (file)
@@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 # /etc/skel is used by Shadow's useradd so you really have that installed for this to make sense ;)
 RDEPENDS = "shadow"
 
 # /etc/skel is used by Shadow's useradd so you really have that installed for this to make sense ;)
 RDEPENDS = "shadow"
 
-PR = "r17"
+PR = "r18"
 
 SRC_URI = " \
   file://.xinitrc \     
 
 SRC_URI = " \
   file://.xinitrc \     
index f22c628..d4a9e5b 100644 (file)
@@ -90,7 +90,7 @@ nocleanwarn=$(cat /tmp/nocleanwarn)
 if [ $nocleanwarn = "Yes" ]; then
     defmhz="$(cat /etc/pandora/conf/cpu.conf | grep default | awk -F\: '{print $2}')"
       if [ $defmhz -gt 600 ]; then
 if [ $nocleanwarn = "Yes" ]; then
     defmhz="$(cat /etc/pandora/conf/cpu.conf | grep default | awk -F\: '{print $2}')"
       if [ $defmhz -gt 600 ]; then
-         if zenity --question --title="Unclean Shutdown" --text="Warning!\n\nThe system has not been shutdown properly last time.\n\nAs you overclocked the CPU as default speed, this might be the reason for that.\nTherefore CPU speed has been currently set to 600 MHz.\n\nShould it be set to your default speed ($defmhz MHz) or shall we keep the 600 MHz for this session?" --ok-label="Set it to $defmhz MHz" --cancel-label="Keep 500MHz"; then
+         if zenity --question --title="Unclean Shutdown" --text="Warning!\n\nThe system has not been shutdown properly last time.\n\nAs you overclocked the CPU as default speed, this might be the reason for that.\nTherefore CPU speed has been currently set to the standard CPU speed of your SoC.\n\nShould it be set to your default speed ($defmhz MHz) or shall we keep safe setting for this session?" --ok-label="Set it to $defmhz MHz" --cancel-label="Leave it safe..."; then
            sudo /usr/pandora/scripts/op_cpuspeed.sh $defmhz
          fi
       fi
            sudo /usr/pandora/scripts/op_cpuspeed.sh $defmhz
          fi
       fi