X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=blobdiff_plain;f=recipes%2Fpandora-system%2Fpandora-skel%2F.xinitrc;h=cebf5af06b894e1aadc3fd7864c3227790016e6c;hp=d4a9e5b3d34e31e06bd552069ad14d979e439540;hb=2f4db81643c1bb32cf3bc99ff293a42faf66452b;hpb=342f5bfd74afd978b27a01c0a11706ef0ef47b9e diff --git a/recipes/pandora-system/pandora-skel/.xinitrc b/recipes/pandora-system/pandora-skel/.xinitrc index d4a9e5b..cebf5af 100644 --- a/recipes/pandora-system/pandora-skel/.xinitrc +++ b/recipes/pandora-system/pandora-skel/.xinitrc @@ -88,8 +88,16 @@ chmod +x /tmp/gui.stop nocleanwarn=$(cat /tmp/nocleanwarn) if [ $nocleanwarn = "Yes" ]; then + + pnd_version=$(dmesg | grep OMAP3 | grep ES | awk '{print $3}') + if [ "$pnd_version" == "OMAP3630" ]; then + safespeed="1000" + else + safespeed="600" + fi + defmhz="$(cat /etc/pandora/conf/cpu.conf | grep default | awk -F\: '{print $2}')" - if [ $defmhz -gt 600 ]; then + if [ $defmhz -gt $safespeed ]; 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