op_cpuspeed.sh: Fixed warning message check (from -ge to -gt)
authorMichael Mrozek <EvilDragon@openpandora.de>
Thu, 1 Jul 2010 01:51:33 +0000 (03:51 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Thu, 1 Jul 2010 01:51:33 +0000 (03:51 +0200)
recipes/pandora-system/pandora-scripts.bb
recipes/pandora-system/pandora-scripts/op_cpuspeed.sh

index 70936d6..22e97aa 100644 (file)
@@ -6,7 +6,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 DEPENDS = "zenity dbus"
 RDEPENDS = "zenity dbus"
 
 DEPENDS = "zenity dbus"
 RDEPENDS = "zenity dbus"
 
-PR = "r29"
+PR = "r30"
 
 SRC_URI = " \
           file://op_bright.sh \
 
 SRC_URI = " \
           file://op_bright.sh \
@@ -74,8 +74,8 @@ do_install() {
          install -m 0755 ${WORKDIR}/op_nubmode.sh ${D}${prefix}/pandora/scripts/
          install -m 0755 ${WORKDIR}/op_storage.sh ${D}${prefix}/pandora/scripts/
 
          install -m 0755 ${WORKDIR}/op_nubmode.sh ${D}${prefix}/pandora/scripts/
          install -m 0755 ${WORKDIR}/op_storage.sh ${D}${prefix}/pandora/scripts/
 
-          install -d ${D}${prefix}/pandora/menu/
-          install -m 0755 ${WORKDIR}/pandorascripts.pnd ${D}${prefix}/pandora/menu/
+          install -d ${D}${prefix}/pandora/apps/
+          install -m 0755 ${WORKDIR}/pandorascripts.pnd ${D}${prefix}/pandora/apps/
          install -d ${D}${prefix}/pandora/mmenu/
           install -m 0755 ${WORKDIR}/abiword.pnd ${D}${prefix}/pandora/mmenu/
           install -m 0755 ${WORKDIR}/arora.pnd ${D}${prefix}/pandora/mmenu/
          install -d ${D}${prefix}/pandora/mmenu/
           install -m 0755 ${WORKDIR}/abiword.pnd ${D}${prefix}/pandora/mmenu/
           install -m 0755 ${WORKDIR}/arora.pnd ${D}${prefix}/pandora/mmenu/
index e184b88..72d0d87 100644 (file)
@@ -16,7 +16,7 @@ else
 newmhz=$1
 fi
 if [ $newmhz ]; then
 newmhz=$1
 fi
 if [ $newmhz ]; then
-        if [ $newmhz -ge $safemhz ]; then
+        if [ $newmhz -gt $safemhz ]; then
                 if [ $DISPLAY ]; then
                         answer=$(zenity --question --title "Alert" --text "You are trying to set the CPU clock to $newmhz which is above its specification of $safemhz, doing so may burn down your house, sour milk, or just blow up (OK, not that likely)! Proceed?";echo $?)
                         echo $answer
                 if [ $DISPLAY ]; then
                         answer=$(zenity --question --title "Alert" --text "You are trying to set the CPU clock to $newmhz which is above its specification of $safemhz, doing so may burn down your house, sour milk, or just blow up (OK, not that likely)! Proceed?";echo $?)
                         echo $answer