ChibraxOS 2
Changes: - kernel 6.0.2 - Broken init scripts - Switch to bun for better peroformance an easier ffi - Removed grup - Efi support without graphics (at least graphics werent tested) - Suppression de toutes les dépendance non libc - new splash - broken audio - typescript support - ls rewritten to be more reliable
This commit is contained in:
@@ -1,26 +1,20 @@
|
||||
//@ts-check
|
||||
const { cmount, mount, flags } = require('../../core/mount.js')
|
||||
import { JSmount, flags } from '../../core/mount.js'
|
||||
|
||||
async function init() {
|
||||
cmount("dummy", "/proc", "proc",
|
||||
export async function init() {
|
||||
/*cmount("dummy", "/proc", "proc",
|
||||
flags.MS_NODEV | flags.MS_RDONLY | flags.MS_NOSUID | flags.MS_RELATIME | flags.MS_NOEXEC
|
||||
, "")
|
||||
, "")*/
|
||||
|
||||
mount("dummy", "/sys", "sysfs", flags.MS_NODEV | flags.MS_NOSUID | flags.MS_RELATIME | flags.MS_NOEXEC, "")
|
||||
mount("dummy", "/tmp", "tmpfs", flags.MS_NODEV, "")
|
||||
JSmount("dummy", "/sys", "sysfs", flags.MS_NODEV | flags.MS_NOSUID | flags.MS_RELATIME | flags.MS_NOEXEC, "")
|
||||
JSmount("dummy", "/tmp", "tmpfs", flags.MS_NODEV, "")
|
||||
}
|
||||
|
||||
/**
|
||||
* @type { string[] }
|
||||
*/
|
||||
const after = [] // list of init script to load before
|
||||
export const after = [] // list of init script to load before
|
||||
/**
|
||||
* @type { string[] }
|
||||
*/
|
||||
const before = []
|
||||
|
||||
module.exports = {
|
||||
init,
|
||||
after,
|
||||
before
|
||||
}
|
||||
export const before = []
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const ip = require('../../core/ip')
|
||||
const ip = require('../../core/ip.js.bak')
|
||||
//async is optional but recomended for optimisation (optimisations are yet to be implemented)
|
||||
async function init() {
|
||||
ip.setFlags('lo', ip.flags.IFF_UP | ip.flags.IFF_LOOPBACK | ip.flags.IFF_RUNNING)
|
||||
@@ -1,33 +1,32 @@
|
||||
//async is optional but recomended for optimisation (optimisations are yet to be implemented)
|
||||
async function init() {
|
||||
export async function init() {
|
||||
//code to execute
|
||||
console.log(`
|
||||
_______ _________ ______ _______ _______
|
||||
( ____ \\|\\ /|\\__ __/( ___ \\ ( ____ )( ___ )|\\ /|
|
||||
| ( \\/| ) ( | ) ( | ( ) )| ( )|| ( ) |( \\ / )
|
||||
| | | (___) | | | | (__/ / | (____)|| (___) | \\ (_) /
|
||||
| | | ___ | | | | __ ( | __)| ___ | ) _ (
|
||||
| | | ( ) | | | | ( \\ \\ | (\\ ( | ( ) | / ( ) \\
|
||||
| (____/\\| ) ( |___) (___| )___) )| ) \\ \\__| ) ( |( / \\ )
|
||||
(_______/|/ \\|\\_______/|/ \\___/ |/ \\__/|/ \\||/ \\|
|
||||
|
||||
_______ _______
|
||||
( ___ )( ____ \\
|
||||
| ( ) || ( \\/
|
||||
| | | || (_____
|
||||
| | | |(_____ )
|
||||
| | | | ) |
|
||||
| (___) |/\\____) |
|
||||
(_______)\\_______)
|
||||
_ _ _ _ _ _ _ _ _
|
||||
/\\ \\ / /\\ / /\\ /\\ \\ / /\\ /\\ \\ / /\\ /_/\\ /\\ \\
|
||||
/ \\ \\ / / / / / / \\ \\ \\ / / \\ / \\ \\ / / \\ \\ \\ \\ \\ \\_\\
|
||||
/ /\\ \\ \\ / /_/ / / / /\\ \\_\\ / / /\\ \\ / /\\ \\ \\ / / /\\ \\ \\ \\ \\__/ / /
|
||||
/ / /\\ \\ \\ / /\\ \\__/ / / / /\\/_/ / / /\\ \\ \\ / / /\\ \\_\\ / / /\\ \\ \\ \\ \\__ \\/_/
|
||||
/ / / \\ \\_\\ / /\\ \\___\\/ / / / / / / /\\ \\_\\ \\ / / /_/ / / / / / \\ \\ \\ \\/_/\\__/\\
|
||||
/ / / \\/_/ / / /\\/___/ / / / / / / /\\ \\ \\___\\ / / /__\\/ / / / /___/ /\\ \\ _/\\/__\\ \\
|
||||
/ / / / / / / / / / / / / / / \\ \\ \\__/ / / /_____/ / / /_____/ /\\ \\ / _/_/\\ \\ \\
|
||||
/ / /________ / / / / / /___/ / /__ / / /____\\_\\ \\ / / /\\ \\ \\ / /_________/\\ \\ \\ / / / \\ \\ \\
|
||||
/ / /_________\\/ / / / / //\\__\\/_/___\\/ / /__________\\/ / / \\ \\ \\/ / /_ __\\ \\_\\/ / / /_/ /
|
||||
\\/____________/\\/_/ \\/_/ \\/_________/\\/_____________/\\/_/ \\_\\/\\_\\___\\ /____/_/\\/_/ \\_\\/
|
||||
_ _ _
|
||||
/\\ \\ / /\\ /\\ \\
|
||||
/ \\ \\ / / \\ / \\ \\
|
||||
/ /\\ \\ \\ / / /\\ \\__ / /\\ \\ \\
|
||||
/ / /\\ \\ \\ / / /\\ \\___\\\\/_/\\ \\ \\
|
||||
/ / / \\ \\_\\ \\ \\ \\ \\/___/ / / /
|
||||
/ / / / / / \\ \\ \\ / / /
|
||||
/ / / / / /_ \\ \\ \\ / / / _
|
||||
/ / /___/ / //_/\\__/ / / / / /_/\\_\\
|
||||
/ / /____\\/ / \\ \\/___/ / / /_____/ /
|
||||
\\/_________/ \\_____\\/ \\________/
|
||||
|
||||
`)
|
||||
}
|
||||
|
||||
const after = [] // list of init script to load before
|
||||
const before = []
|
||||
|
||||
module.exports = {
|
||||
init,
|
||||
after,
|
||||
before
|
||||
}
|
||||
export const after = [] // list of init script to load before
|
||||
export const before = []
|
||||
|
||||
@@ -1,14 +1,8 @@
|
||||
const audio = require('../../core/audio')
|
||||
import audio from '../../core/audio'
|
||||
|
||||
async function init() {
|
||||
export async function init() {
|
||||
audio('/core/sheeebr.wav')
|
||||
}
|
||||
|
||||
const after = [ "filesystem.js" ] // list of init script to load before
|
||||
const before = []
|
||||
|
||||
module.exports = {
|
||||
init,
|
||||
after,
|
||||
before
|
||||
}
|
||||
export const after = [ "filesystem.js" ] // list of init script to load before
|
||||
export const before = []
|
||||
|
||||
Reference in New Issue
Block a user