1
0
Fork 0
mirror of https://github.com/tailix/mrubyvisor.git synced 2026-08-22 08:24:35 -04:00

Display cmdline and modules

This commit is contained in:
Alex Kotov 2022-11-28 20:26:16 +04:00
parent 7ef403fc5b
commit 511c3e8473
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
4 changed files with 51 additions and 1 deletions

1
rootfs/boot/foobar.rb Normal file
View file

@ -0,0 +1 @@
puts 'Hello, World! Ruby modules work!'

View file

@ -1,5 +1,7 @@
set timeout=0
menuentry "mrubyvisor" {
multiboot2 /boot/mrubyvisor.multiboot2
multiboot2 /boot/mrubyvisor.multiboot2 Hello, kernel!
module2 /boot/foobar.rb Hello, module foobar!
module2 /boot/qwerty.rb Hello, module qwerty!
}

3
rootfs/boot/qwerty.rb Normal file
View file

@ -0,0 +1,3 @@
hello = 'Hello, World'
works = 'Ruby modules work'
puts [hello, works].map { |s| "#{s}!" }.join ' '