From d57a5985982ed2ba386eb4c0b4ca05ab3498238a Mon Sep 17 00:00:00 2001 From: memdmp Date: Sat, 11 Jan 2025 20:20:16 +0100 Subject: feat: initial commit --- src/routes/distro-info.ts | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/routes/distro-info.ts (limited to 'src/routes/distro-info.ts') diff --git a/src/routes/distro-info.ts b/src/routes/distro-info.ts new file mode 100644 index 0000000..0c4656e --- /dev/null +++ b/src/routes/distro-info.ts @@ -0,0 +1,38 @@ +/* + Copyright (C) 2024 memdmp + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . +*/ +export const architecture = 'x86_64'; +export const versions = { + alpine: { + number: '3.21.0', + isEdge: true, + }, + kernel: { + id: '6.6.53-0-lts', + humanReadable: 'Linux lts', + }, + openrc: '0.55.1.ba16daf355', + udhcpd: '1.36.1', +}; +export const tty = 'tty1'; +export const hostname = 'estrogen.zone'; +export const interfaces = { + // key: iface name + // value: time for it coming up, in millis + lo: 0, + eth0: Math.random() * 128 + 2, +}; + +if (versions.alpine.isEdge) { + versions.alpine.number += `_alpha${ + new Date().getUTCFullYear().toString() + + new Date().getUTCMonth().toString().padStart(2, '0') + + new Date().getUTCDate().toString().padStart(2, '0') + }`; +} -- cgit v1.2.3