support de l'alumage des interface reseau

This commit is contained in:
Marc
2022-02-15 12:31:06 +01:00
parent a5f8ef486a
commit 1edb531e1a
11 changed files with 167 additions and 23 deletions
+15
View File
@@ -0,0 +1,15 @@
const ip = require('../../chibrax/ip')
//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)
}
const after = ['filesystem.js'] // list of init script to load before
const before = []
module.exports = {
init,
after,
before
}