2010-12-29 21:32:43 +01:00
|
|
|
/**
|
|
|
|
* Sample configuration and contents
|
|
|
|
*/
|
|
|
|
|
|
|
|
{
|
|
|
|
"banner" : "blash version 0.1<br/>" +
|
|
|
|
"Copyright (C) 2010 BlackLight <blacklight@autistici.org>" +
|
|
|
|
"<br/>Licence GPLv3+: GNU GPL version 3 or later " +
|
|
|
|
"<<a class=\"bannerLink\" href=\"http://gnu.org/licences/gpl.html\" target=\"_new\">" +
|
|
|
|
"http://gnu.org/licences/gpl.html</a>><br/>" +
|
|
|
|
"Source code available at <a class=\"bannerLink\" target=\"_new\" " +
|
|
|
|
"href=\"https://github.com/BlackLight/blash\">" +
|
|
|
|
"https://github.com/BlackLight/blash</a><br/><br/>" +
|
|
|
|
"This is free software; you are free to change and " +
|
|
|
|
"redistribuite it.<br/>There is NO WARRANTY, to the " +
|
|
|
|
"extent permitted by law.<br/>" +
|
|
|
|
"Type '<span class=\"brief\">man blash</span>' for help on usage and available commands<br/><br/>",
|
|
|
|
|
|
|
|
"user" : "guest",
|
|
|
|
"machine" : "localhost",
|
|
|
|
"shellName" : "blash",
|
|
|
|
"basepath" : "/",
|
|
|
|
"promptText" : "[#{800}%n#{888}@#{800}%m#{888} %W] $ ",
|
|
|
|
"promptSequences" : [
|
|
|
|
{
|
|
|
|
"sequence" : "%n",
|
|
|
|
"default_text" : "guest",
|
|
|
|
"text" : function () {
|
|
|
|
return shell.user;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sequence" : "%m",
|
|
|
|
"default_text" : "localhost",
|
|
|
|
"text" : function () {
|
|
|
|
return shell.json.machine;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sequence" : "%W",
|
|
|
|
"default_text" : "/",
|
|
|
|
"text" : function () {
|
|
|
|
return shell.path;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
"modules" : [
|
|
|
|
{
|
|
|
|
"name" : "users",
|
|
|
|
"enabled" : true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
"commands" : [
|
|
|
|
"cat",
|
|
|
|
"cd",
|
2011-01-07 11:42:38 +01:00
|
|
|
"chmod",
|
2010-12-29 21:32:43 +01:00
|
|
|
"clear",
|
|
|
|
"echo",
|
|
|
|
"eval",
|
|
|
|
"find",
|
2010-12-30 03:27:26 +01:00
|
|
|
"grep",
|
2010-12-29 21:32:43 +01:00
|
|
|
"logout",
|
|
|
|
"ls",
|
|
|
|
"man",
|
2010-12-30 23:05:42 +01:00
|
|
|
"mkdir",
|
2011-01-01 17:25:28 +01:00
|
|
|
"nano",
|
2010-12-29 21:32:43 +01:00
|
|
|
"passwd",
|
|
|
|
"pwd",
|
2010-12-31 03:24:38 +01:00
|
|
|
"rm",
|
2010-12-30 23:05:42 +01:00
|
|
|
"rmdir",
|
2010-12-29 21:32:43 +01:00
|
|
|
"su",
|
2010-12-31 03:24:38 +01:00
|
|
|
"touch",
|
2010-12-29 21:32:43 +01:00
|
|
|
"useradd",
|
2011-01-07 18:07:17 +01:00
|
|
|
"userdel",
|
2010-12-29 21:32:43 +01:00
|
|
|
"whoami"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|