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:
Marc
2022-10-22 13:47:33 +02:00
parent db49f8d205
commit 721c919c7b
76 changed files with 2485 additions and 2665 deletions
+9 -5
View File
@@ -1,9 +1,13 @@
const fs = require('fs')
import * as fs from 'fs'
const audiopath = '/dev/audio'
module.exports = (path) => {
if(fs.existsSync(path) && fs.existsSync(audiopath)) {
const data = fs.readFileSync(path)
fs.writeFileSync(audiopath, data)
export default function play(path) {
if(fs.existsSync(audiopath)) {
if(fs.existsSync(path)) {
const data = fs.readFileSync(path)
fs.writeFileSync(audiopath, data)
}
} else {
console.log('Kernel doesn\'t have snd_pcm_oss or snd_seq_oss or snd_mixer_oss')
}
}