8 L.resolveDefault(fs.stat('/sbin/logread'), null),
9 L.resolveDefault(fs.stat('/usr/sbin/logread'), null)
10 ]).then(function(stat) {
11 var logger = stat[0] ? stat[0].path : stat[1] ? stat[1].path : null;
13 return fs.exec_direct(logger, [ '-e', '^' ]).catch(function(err) {
14 ui.addNotification(null, E('p', {}, _('Unable to load log data: ' + err.message)));
20 render: function(logdata) {
21 var loglines = logdata.trim().split(/\n/);
24 E('h2', {}, [ _('System Log') ]),
25 E('div', { 'id': 'content_syslog' }, [
28 'style': 'font-size:12px',
29 'readonly': 'readonly',
31 'rows': loglines.length + 1
32 }, [ loglines.join('\n') ])
37 handleSaveApply: null,