[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/80: installer: Connect ethernet interfaces on selection.
From: |
John Darrington |
Subject: |
27/80: installer: Connect ethernet interfaces on selection. |
Date: |
Tue, 3 Jan 2017 15:49:42 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit 042a8d630cd0a5ee00c9c6dd526cce23757a5e4e
Author: John Darrington <address@hidden>
Date: Sat Dec 24 12:27:21 2016 +0100
installer: Connect ethernet interfaces on selection.
* gnu/system/installer/network.scm (network-page-key-handler) : Add handler
for
'continue and select cases.
---
gnu/system/installer/network.scm | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/gnu/system/installer/network.scm b/gnu/system/installer/network.scm
index db49b0f..e17f940 100644
--- a/gnu/system/installer/network.scm
+++ b/gnu/system/installer/network.scm
@@ -96,13 +96,12 @@
(assq-ref (menu-get-current-item menu)
'name))))
(set! page-stack (cons next page-stack))
((page-refresh next) next)))
-
-
- ((buttons-key-matches-symbol? nav ch 'continue)
- (delwin (outer (page-wwin page)))
- (set! page-stack (cdr page-stack))
- ((page-refresh (car page-stack)) (car page-stack)))
+ ((select-key? ch)
+ (let ((item (menu-get-current-item menu)))
+ (when (eq? (assq-ref item 'class) 'ethernet)
+ (and (zero? (system* "ip" "link" "set" (assq-ref item 'name) "up"))
+ (zero? (system* "dhclient" (assq-ref item 'name)))))))
((buttons-key-matches-symbol? nav ch 'test)
(let ((next (make-page (page-surface page)
@@ -111,7 +110,12 @@
ping-page-key-handler)))
(set! page-stack (cons next page-stack))
- ((page-refresh next) next))))
+ ((page-refresh next) next)))
+
+ ((buttons-key-matches-symbol? nav ch 'continue)
+ (delwin (outer (page-wwin page)))
+ (delwin (inner (page-wwin page)))
+ (set! page-stack (cdr page-stack))))
(std-menu-key-handler menu ch))
#f)
- 07/80: installer: Use ice-9 match., (continued)
- 07/80: installer: Use ice-9 match., John Darrington, 2017/01/03
- 06/80: installer: use ice-9 format everywhere., John Darrington, 2017/01/03
- 08/80: installer: Add IETF contraints for hostname in entry form., John Darrington, 2017/01/03
- 12/80: installer: Add gurses modules., John Darrington, 2017/01/03
- 21/80: gnu: guix: Add dependency: guile-ncurses., John Darrington, 2017/01/03
- 17/80: installer: Add new procedure to get the list of volumes., John Darrington, 2017/01/03
- 19/80: installer: Handle the 'back' action in the filesystems task., John Darrington, 2017/01/03
- 23/80: installer: Fix incorrect host in ping task., John Darrington, 2017/01/03
- 25/80: installer: Use a cleaner way of generating the lspci information., John Darrington, 2017/01/03
- 24/80: installer: Make "interfaces" return an alist., John Darrington, 2017/01/03
- 27/80: installer: Connect ethernet interfaces on selection.,
John Darrington <=
- 28/80: installer: Let the kernel know about (possibly) changed partitions., John Darrington, 2017/01/03
- 49/80: installer: Wrap installer in (catch #t ...), John Darrington, 2017/01/03
- 09/80: installer: Use a record instead of a list to contain tasks., John Darrington, 2017/01/03
- 29/80: installer: Deal with partition tables which are (partially) corrupt., John Darrington, 2017/01/03
- 37/80: installer: Improve dependencies on the final task., John Darrington, 2017/01/03
- 31/80: gnu: Add service to start the installer in installation-os., John Darrington, 2017/01/03
- 36/80: installer: Remove ad-hoc completed predicate and use standard one., John Darrington, 2017/01/03
- 35/80: installer: Make minumum-store-size variable global., John Darrington, 2017/01/03
- 34/80: installer: Add path to mount/umount commands in installer service., John Darrington, 2017/01/03
- 58/80: installer: Allow users to remove mount points during configuration., John Darrington, 2017/01/03