/*
  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.2',
    isEdge: false,
  },
  kernel: {
    id: '6.12.9-0-lts',
    humanReadable: 'Linux lts',
  },
  openrc: '0.55.1.ba16daf355',
  busybox: '1.37.0',
};
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')
    }`;
}