Jump to content

Clover General discussion


ErmaC
30,171 posts in this topic

Recommended Posts

Guys , is there any efi driver that supports ELAN tech touchpads in Clover GUI?


My touchpad doesnt work at all in Clover


Ā 


Maybe would be a nice feature to add in the next revision? :D


thanks for all the immense work you did on this great BootLoader


Link to comment
Share on other sites

Does anyone know who maintains (Or knows how to fix!) the Clover Update checker (Accessed from System Preferences) as it hasn't worked for several builds now?

You building Clover by yourself?

Ā 

If so, make sure it actually built the updater app. :) There are a few changes you need to make to the CloverUpdater.xcodeproj file in order to build it successfully.

Ā 

Look under /edk2/Clover/CloverPackage/CloverUpdater/build

Ā 

You should see something like this.

Ā 

post-1303722-0-48033300-1456649349_thumb.png

Ā 

If you don't, check your Terminal for errors. Most likely it didn't build the updater app.

Link to comment
Share on other sites

Thats the same as mine, I wonder if it's one of these other files in that folder?

attachicon.gifScreen Shot 2016-02-28 at 09.04.31.png

Ā 

You might be on to something here, Dan. I tried the official build 3346 and...it doesn't seem to work. Checking for updates doesn't actually load the CloverUpdater app with the proper information. I guess this is what you're saying, right?

Link to comment
Share on other sites

Just guessing, CloverUpdaterUtility

Ā 

Follow protocol redirect: http => https

--- G:\c\CloverUpdaterUtility 2016-02-28 17:58:28.000000000 +0700
+++ G:\c\p\1  2016-02-28 17:59:14.000000000 +0700
@@ -5,13 +5,13 @@
 
 declare -r CURL="/usr/bin/curl"
 declare -r SED="/usr/bin/sed"
 declare -r IOREG="/usr/sbin/ioreg"
 declare -r OPEN="/usr/bin/open"
 declare -r PLISTBUDDY="/usr/libexec/PlistBuddy"
-declare -r CLOVER_LAST_VERSION_URL="http://sourceforge.net/projects/cloverefiboot/files/latest/download"
+declare -r CLOVER_LAST_VERSION_URL="https://sourceforge.net/projects/cloverefiboot/files/latest/download"
 declare -r CLOVER_APP_SUPPORT="/Library/Application Support/Clover"
 declare -r CLOVER_INSTALLER_PLIST=/Library/Preferences/com.projectosx.clover.installer.plist
 declare -r CLOVER_UPDATER_PLIST="$HOME"/Library/Preferences/com.projectosx.clover.updater.plist
 
 # Argument pass to script
 mode="${1:-}"

-- OR --

--- G:\c\CloverUpdaterUtility   2016-02-28 17:58:28.000000000 +0700
+++ G:\c\p\2    2016-02-28 17:59:38.000000000 +0700
@@ -26,13 +26,13 @@
     [[ -z "$scheduled_check_interval" || "$scheduled_check_interval" -eq 0 ]] && exit 0
     last_check_timestamp=$($PLISTBUDDY -c "Print LastCheckTimestamp" "$CLOVER_UPDATER_PLIST" 2>/dev/null)
     [[ -z "$last_check_timestamp" ]] && last_check_timestamp=0
     [[ $(($last_check_timestamp + $scheduled_check_interval)) -gt "$now" ]] && exit 0
 fi
 
-last_revision=$(LC_ALL=C $CURL --silent --fail --connect-timeout 30 \
+last_revision=$(LC_ALL=C $CURL --location --silent --fail --connect-timeout 30 \
  --max-time 60 "$CLOVER_LAST_VERSION_URL" 2>&1 |                    \
  $SED -nE 's#^.*Installer/Clover_v2.3k?_r([0-9]+).*#\1#p')
 
 [[ -z "$last_revision" ]] && exit 1
 
 current_revision=$(LC_ALL=C $IOREG -l -pIODeviceTree | \
  • Like 2
Link to comment
Share on other sites

Thats the same as mine, I wonder if it's one of these other files in that folder?

attachicon.gifScreen Shot 2016-02-28 at 09.04.31.png

check the permissions/existence of:

Ā 

/Library/LaunchDaemons/com.projectosx.clover.daemon.plist

/Library/Application Support/Clover/CloverDaemon

/Library/Application Support/Clover/CloverUpdaterUtility

Ā 

@cecekpawon, yes, could be an App Security Transport issue descrbed here:Ā https://curl.haxx.se/mail/archive-2014-10/0053.html

Link to comment
Share on other sites

I have all those files, this is the content of CloverUpdaterUtility:

#!/bin/bash

# Prevent the script from doing bad things
set -u  # Abort with unset variables

declare -r CURL="/usr/bin/curl"
declare -r SED="/usr/bin/sed"
declare -r IOREG="/usr/sbin/ioreg"
declare -r OPEN="/usr/bin/open"
declare -r PLISTBUDDY="/usr/libexec/PlistBuddy"
declare -r CLOVER_LAST_VERSION_URL="http://sourceforge.net/projects/cloverefiboot/files/latest/download"
declare -r CLOVER_APP_SUPPORT="/Library/Application Support/Clover"
declare -r CLOVER_INSTALLER_PLIST=/Library/Preferences/com.projectosx.clover.installer.plist
declare -r CLOVER_UPDATER_PLIST="$HOME"/Library/Preferences/com.projectosx.clover.updater.plist

# Argument pass to script
mode="${1:-}"

now=$(/bin/date "+%s")

# We need to check if we are allowed to update from preferences in case of
# startup
if [[ "$mode" == startup ]]; then
    # Check preferences
    scheduled_check_interval=$($PLISTBUDDY -c "Print ScheduledCheckInterval" "$CLOVER_UPDATER_PLIST" 2>/dev/null)
    [[ -z "$scheduled_check_interval" || "$scheduled_check_interval" -eq 0 ]] && exit 0
    last_check_timestamp=$($PLISTBUDDY -c "Print LastCheckTimestamp" "$CLOVER_UPDATER_PLIST" 2>/dev/null)
    [[ -z "$last_check_timestamp" ]] && last_check_timestamp=0
    [[ $(($last_check_timestamp + $scheduled_check_interval)) -gt "$now" ]] && exit 0
fi

last_revision=$(LC_ALL=C $CURL --silent --fail --connect-timeout 30 \
 --max-time 60 "$CLOVER_LAST_VERSION_URL" 2>&1 |                    \
 $SED -nE 's#^.*Installer/Clover_v2.3k?_r([0-9]+).*#\1#p')

[[ -z "$last_revision" ]] && exit 1

current_revision=$(LC_ALL=C $IOREG -l -pIODeviceTree | \
 $SED -nE 's@.*boot-log.*<([0-9a-fA-F]*)>.*@\1@p'    | \
 xxd -r -p                                           | \
 $SED -nE 's/^.*Clover revision: *([0-9]+).*$/\1/p')

installed_revision=$($PLISTBUDDY -c "PrintCloverRevision" "$CLOVER_INSTALLER_PLIST" 2>/dev/null)

[[ -n "$installed_revision" && "$installed_revision" -gt "$current_revision" ]] && \
 current_revision="$installed_revision"

[[ -z "$current_revision" ]] && exit 1

"$PLISTBUDDY" -c "Delete LastCheckTimestamp" "$CLOVER_UPDATER_PLIST" &>/dev/null
"$PLISTBUDDY" -c "Add LastCheckTimestamp integer $now" "$CLOVER_UPDATER_PLIST" &>/dev/null

[[ "$mode" == startup && "$last_revision" -le "$current_revision" ]] && exit 0

choice=$("$CLOVER_APP_SUPPORT"/CloverUpdater.app/Contents/MacOS/CloverUpdater \
 "$current_revision" "$last_revision")

# Remove previous key
"$PLISTBUDDY" -c "Delete AllowUpdate" "$CLOVER_UPDATER_PLIST" &>/dev/null
case "$choice" in
    -1) "$PLISTBUDDY" -c "Add AllowUpdate bool false" "$CLOVER_UPDATER_PLIST" &>/dev/null
        ;;
     1) open http://sourceforge.net/projects/cloverefiboot/files/Installer/Clover_v2.3k_r${last_revision}.zip/download
        ;;
esac

# Local Variables:      #
# mode: ksh             #
# tab-width: 4          #
# indent-tabs-mode: nil #
# End:                  #
#
# vi: set expandtab ts=4 sw=4 sts=4: #
Link to comment
Share on other sites

yeah - seems cecekpawon nailed it on the CloverUpdater check Ā - Ā 1st fix is easy and makes it work

Ā 

that is editĀ /Library/Application Support/Clover/CloverUpdaterUtility

and change http to https on this line:

Ā 

-declare -r CLOVER_LAST_VERSION_URL="http://sourceforge.net/projects/cloverefiboot/files/latest/download"
+declare -r CLOVER_LAST_VERSION_URL="https://sourceforge.net/projects/cloverefiboot/files/latest/download"

Ā 

here is the difference of output and why it fails - the script could not find the version.

Ā 

$ /usr/bin/curl --silent --fail --connect-timeout 30 --max-time 60 http://sourceforge.net/projects/cloverefiboot/files/latest/download
<html>
<head>
Ā  <title>301 Moved Permanently</title>
</head>
<body>
Ā  <h1>301 Moved Permanently</h1>
Ā  The resource has been moved to <a href="https://sourceforge.net/projects/cloverefiboot/files/latest/download">https://sourceforge.net/projects/cloverefiboot/files/latest/download</a>;
you should be redirected automatically.

</body>
</html>

Ā 

tluck@Toms-Mac /Library/Application Support/Clover
$ /usr/bin/curl --silent --fail --connect-timeout 30 --max-time 60 https://sourceforge.net/projects/cloverefiboot/files/latest/download
<html>
<head>
Ā  <title>302 Found</title>
</head>
<body>
Ā  <h1>302 Found</h1>
Ā  The resource was found at <a href="http://downloads.sourceforge.net/project/cloverefiboot/Installer/Clover_v2.3k_r3346.zip?r=&ts=1456678567&use_mirror=iweb">http://downloads.sourceforge.net/project/cloverefiboot/Installer/Clover_v2.3k_r3346.zip?r=&ts=1456678567&use_mirror=iweb</a>;
you should be redirected automatically.

</body>
</html>

  • Like 3
Link to comment
Share on other sites

You may use any programs you like.

But integration new panel into existing infrastructure requires at least remaking all internationalization. It's impossible.

  • Like 1
Link to comment
Share on other sites

You may use any programs you like.

But integration new panel into existing infrastructure requires at least remaking all internationalization. It's impossible.

Yes indeed, it is a difficult task for so can

thank

Link to comment
Share on other sites

×
×
  • Create New...