В Чт., 04/10/2012 в 16:09 +0200, Dr. Tilmann Bubeck пишет:
> An even more general idea would be to implement a shellish backticks
> operator $() and extend some commands to print out information (here
> "videoinfo"), like:
>
> width=$(videoinfo --show-width)
> if [ "${width}" -lt 800 ]; then
> theme=${root}/grub2/themes/small
> else
> theme=${root}/grub2/themes/large
> fi
>
While I miss this possibility every now and then, for this particular
use case you can simply extend videoinfo with something like
videoinfo --show-width --set width
similar to what "search --set ..." does.
-andrey
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel