aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/distro-info.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/distro-info.ts')
-rw-r--r--src/routes/distro-info.ts38
1 files changed, 38 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
+*/
+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')
+ }`;
+}