diff options
Diffstat (limited to 'x11-misc/afbinit/files')
-rw-r--r-- | x11-misc/afbinit/files/rc.afb-1.0.1-r7.patch | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/x11-misc/afbinit/files/rc.afb-1.0.1-r7.patch b/x11-misc/afbinit/files/rc.afb-1.0.1-r7.patch index 0105a2aeef4a..37f5f40d1a6a 100644 --- a/x11-misc/afbinit/files/rc.afb-1.0.1-r7.patch +++ b/x11-misc/afbinit/files/rc.afb-1.0.1-r7.patch @@ -12,7 +12,7 @@ # The microcode loader binary and the microcode # itself must exist. if [ ! -x /usr/sbin/afbinit -o ! -f /usr/lib/afb.ucode ] -@@ -22,13 +17,37 @@ +@@ -22,13 +17,38 @@ exit 0 fi @@ -49,6 +49,7 @@ - /usr/sbin/afbinit /dev/${AFB} /usr/lib/afb.ucode - echo "done." -done ++ [[ -e /proc/fb ]] || exit 0 + afb_devs=`/bin/more -s /proc/fb | /bin/egrep -i "Elite 3D" | /bin/sed 's/\ .*//'` + # Load microcode onto each card. + for AFB in ${afb_devs} |