shithub: rc

Download patch

ref: 292d2ac8ea7c89a67d5551656dbe4b98449f2a30
parent: 7e557dcc045c7f0a342cfc8a6732c6fd5baffd06
author: qwx <qwx@sciops.net>
date: Sun Sep 11 00:42:42 EDT 2022

vmxlinux: bump and don't always assume vesa modes

--- a/bin/vmxlinux
+++ b/bin/vmxlinux
@@ -20,7 +20,7 @@
 	clean
 }
 
-ver=5.18.14_1
+ver=5.18.19_1
 mac=2ec3bc946389
 n=ether0
 M=2G
@@ -27,7 +27,7 @@
 k=/tmp/vmx/vmlinuz-$ver
 m=/tmp/vmx/initramfs-^$ver^.img
 d=/dev/sdE0/data
-v=1920x1050
+v=vesa:1920x1050
 c=('root=/dev/vda1')
 if(test -d '#l1'){
 	bind -aq '#l1' /net
@@ -50,7 +50,11 @@
 	}
 	shift
 }
-echo $v | awk -Fx '{ print "resize -dx", $1+8, "-dy", $2+8 }' >/dev/wctl
+echo $v | awk -Fx '
+{
+	gsub(".*:", "")
+	print "resize -dx", $1+8, "-dy", $2+8
+}' >/dev/wctl
 echo scroll >/dev/wctl
 vmx \
 	-d $d \
@@ -57,6 +61,6 @@
 	-M $M \
 	-m $m \
 	-n ea:$mac!$n \
-	-v vesa:$v \
+	-v $v \
 	$k \
 	$c $*