Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #299 from JesusCrie/master
Browse files Browse the repository at this point in the history
(Easter) Add a lovely message for arch users on the boot screen.
  • Loading branch information
GitSquared committed Nov 27, 2018
2 parents 5afea2d + 45e234f commit 0978e6f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/_renderer.js
Expand Up @@ -91,6 +91,12 @@ let i = 0;
displayLine();

function displayLine() {
function isArchUser() {
return require("os").platform() === "linux"
&& fs.existsSync("/etc/os-release")
&& fs.readFileSync("/etc/os-release").toString().includes("archlinux");
}

if (log[i] === undefined) {
setTimeout(resumeInit, 300);
return;
Expand All @@ -114,6 +120,11 @@ function displayLine() {
case i > 42 && i < 82:
setTimeout(displayLine, 25);
break;
case i === 83:
if (isArchUser())
bootScreen.innerHTML += "btw i use arch<br/>";
setTimeout(displayLine, 25);
break;
case i >= log.length-2 && i < log.length:
setTimeout(displayLine, 300);
break;
Expand Down

0 comments on commit 0978e6f

Please sign in to comment.