Skip to content
Snippets Groups Projects
Commit 077d69f0 authored by Guy Zana's avatar Guy Zana
Browse files

cli: add init.js, an initialization script

parent 8095646e
No related branches found
No related tags found
No related merge requests found
...@@ -113,4 +113,5 @@ ...@@ -113,4 +113,5 @@
/console/route.js: ../../console/route.js /console/route.js: ../../console/route.js
/console/ifconfig.js: ../../console/ifconfig.js /console/ifconfig.js: ../../console/ifconfig.js
/console/cli.js: ../../console/cli.js /console/cli.js: ../../console/cli.js
/console/init.js: ../../console/init.js
/&/etc/hosts: ../../static/& /&/etc/hosts: ../../static/&
...@@ -274,5 +274,7 @@ for (var cmd in _commands) { ...@@ -274,5 +274,7 @@ for (var cmd in _commands) {
update_prompt(); update_prompt();
load("/console/init.js");
// Main loop // Main loop
main_loop(); main_loop();
//
// init.js
//
// initialization script for the cli environment
//
// setup networking
$("ifconfig virtio-net0 192.168.122.100 netmask 255.255.255.0 up");
$("route add default gw 192.168.122.1");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment