Install a moduli(5) manual page.
[dragonfly.git] / contrib / bsdinstaller-1.1.6 / src / backend / lua / configure / 100_choose_where_from.lua
1 -- $Id: 100_choose_where_from.lua,v 1.3 2005/02/24 23:08:03 cpressey Exp $
2
3 require "target_system"
4
5 return {
6     name = "choose_target_system",
7     title = "Choose Target System",
8     action = function(fsm)
9         local action_id = App.ui:present({
10             id = "choose_target_system",
11             name = _("Choose Target System"),
12             short_desc = _(
13                 "Please choose which installed system you want to configure."
14             ),
15             actions = {
16                 {
17                     id = "this",
18                     name = _("Configure the Running System")
19                 },
20                 {
21                     id = "disk",
22                     name = _("Configure a System on Disk")
23                 },
24                 {
25                     id = "cancel",
26                     name = _("Cancel"),
27                 }
28             },
29             role = "menu"
30         }).action_id
31
32         if action_id == "cancel" then
33                 return nil
34         end
35
36         if action_id == "disk" then
37                 return fsm:next()
38         end
39
40         App.state.target = TargetSystem.new()
41         App.state.target:use_current()
42
43         -- Jump straight to the menu.
44         return "configuration_menu"
45     end
46 }