| 1 |
--------------------------------------------------------------------- |
| 2 |
-- This file is part of Freedroid |
| 3 |
-- |
| 4 |
-- Freedroid is free software; you can redistribute it and/or modify |
| 5 |
-- it under the terms of the GNU General Public License as published by |
| 6 |
-- the Free Software Foundation; either version 2 of the License, or |
| 7 |
-- (at your option) any later version. |
| 8 |
-- |
| 9 |
-- Freedroid is distributed in the hope that it will be useful, |
| 10 |
-- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
-- GNU General Public License for more details. |
| 13 |
-- |
| 14 |
-- You should have received a copy of the GNU General Public License |
| 15 |
-- along with Freedroid; see the file COPYING. If not, write to the |
| 16 |
-- Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 17 |
-- MA 02111-1307 USA |
| 18 |
---------------------------------------------------------------------- |
| 19 |
|
| 20 |
local Npc = FDrpg.get_npc() |
| 21 |
local Tux = FDrpg.get_tux() |
| 22 |
|
| 23 |
return { |
| 24 |
FirstTime = function() |
| 25 |
play_sound("effects/Menu_Item_Deselected_Sound_0.ogg") |
| 26 |
local day, hour, minute = game_date() |
| 27 |
DSB_PC_year = os.date("%Y") + 45 -- current year + 45 |
| 28 |
DSB_PC_date = string.format(_"Day %d, %02d:%02d", day, hour, minute) |
| 29 |
cli_says(_"Login : ", "NO_WAIT") |
| 30 |
Tux:says(_"admin", "NO_WAIT") |
| 31 |
cli_says(_" Password : ", "NO_WAIT") |
| 32 |
Tux:says(_"*******", "NO_WAIT") |
| 33 |
--; TRANSLATORS: %s = a date , %y = a year |
| 34 |
Npc:says(_"First login from /dev/ttySO on %s %d", DSB_PC_date, DSB_PC_year, "NO_WAIT") |
| 35 |
show("node1") |
| 36 |
end, |
| 37 |
|
| 38 |
EveryTime = function() |
| 39 |
--; TRANSLATORS: 'admin' should perhaps not be translated |
| 40 |
cli_says(_"[email protected]: ~ #", "NO_WAIT") |
| 41 |
show("node99") |
| 42 |
end, |
| 43 |
|
| 44 |
{ |
| 45 |
id = "node1", |
| 46 |
text = _"powercontrol --halt", |
| 47 |
code = function() |
| 48 |
Npc:says(_"[b]ERROR:[/b] Impossible to shutdown. Please contact Machine Deck.") |
| 49 |
cli_says(_"[email protected]: ~ #", "NO_WAIT") |
| 50 |
hide("node1") |
| 51 |
end, |
| 52 |
}, |
| 53 |
{ |
| 54 |
id = "node99", |
| 55 |
text = _"logout", |
| 56 |
code = function() |
| 57 |
Npc:says(_"Exiting...") |
| 58 |
play_sound("effects/Menu_Item_Selected_Sound_1.ogg") |
| 59 |
end_dialog() |
| 60 |
end, |
| 61 |
}, |
| 62 |
} |