1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 13:31:36 +03:00
mobile-nixos/boot/init/tasks/splash.rb
2020-02-03 16:19:10 -05:00

18 lines
319 B
Ruby

# Adds a minimal set of files required for logging-in.
class Tasks::Splash < Task
attr_reader :image
def initialize(image)
add_dependency(:SingletonTask, :Graphics)
@image = image
end
def run()
System.run("ply-image", "/splash.#{image}.png")
end
def name()
"#{super}(#{image})"
end
end