small fix, replaced \s with [[:space:]] to be consistent

This commit is contained in:
inxi-svn 2013-08-12 23:30:26 +00:00
parent 6bf5746de2
commit 316b13a070

4
inxi
View file

@ -4738,8 +4738,8 @@ get_graphics_driver()
} }
# verify that the driver actually started the desktop, even with false failed messages which can occur # verify that the driver actually started the desktop, even with false failed messages which can occur
# this is the driver that is actually driving the display # this is the driver that is actually driving the display
/.*\([0-9]+\):\sDepth.*framebuffer/ { /.*\([0-9]+\):[[:space:]]Depth.*framebuffer/ {
driver=gensub(/.*('"$driver_list"')\([0-9]+\):\sDepth.*framebuffer.*/, "\\1", 1, $0 ) driver=gensub(/.*('"$driver_list"')\([0-9]+\):[[:space:]]Depth.*framebuffer.*/, "\\1", 1, $0 )
# we need to make sure that the driver has already been truly loaded, not just discussed, also # we need to make sure that the driver has already been truly loaded, not just discussed, also
# set driver to lower case because sometimes it will show as RADEON or NVIDIA in the actual x start # set driver to lower case because sometimes it will show as RADEON or NVIDIA in the actual x start
driver=tolower(driver) driver=tolower(driver)