Installer import into contrib (real import this time)
[dragonfly.git] / contrib / bsdinstaller-1.1.6 / src / backend / lua / install / 900_reboot.lua
1 -- $Id: 900_reboot.lua,v 1.7 2005/02/24 23:08:04 cpressey Exp $
2
3 require "gettext"
4
5 return {
6     name = "reboot",
7     title = "Reboot",
8     action = function()
9         local response = App.ui:present({
10             id = "reboot",
11             name = _("Reboot"),
12             short_desc = _("This machine is about to be shut down. " ..
13                 "After the machine has reached its shutdown state, " ..
14                 "you may remove the CD from the CD-ROM drive tray " ..
15                 "and press Enter to reboot from the HDD."),
16             role = "confirm",
17             actions = {
18                 {
19                     id = "ok",
20                     name = _("Reboot"),
21                 },
22                 {
23                     id = "cancel",
24                     name = _("Return to Main Menu"),
25                 }
26             }
27         })
28
29         App.state.do_reboot = (response.action_id == "ok")
30
31         return nil
32     end
33 }