Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sorry noob #18

Open
paulkenosky opened this issue Oct 1, 2014 · 0 comments
Open

sorry noob #18

paulkenosky opened this issue Oct 1, 2014 · 0 comments

Comments

@paulkenosky
Copy link

not sure where this should go, but someone might be interested for testing or to update the original

add this to jurassicSystems.js

///code to add

jpTerminal.addCommand({
name: 'reboot',
summary: 'reboot the system',
manPage: 'SYNOPSIS\n' +
'\treboot [yes]\n\n' +
'DESCRIPTION\n' +
'\tReboots the system.\n\n' +
'AUTHOR\n' +
'\tWritten by Paul Kenosky.\n',
command: function(env, inputLine) {
var arg = inputLine.trim().split(/ +/)[1] || '',
output = $('').text('reboot:');

  if (arg.toLowerCase() === 'yes') {
    location.reload();         
  }

  }

});

//end code to add

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant