summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/label.c
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2006-08-07 23:35:49 +0000
committernetchild <netchild@FreeBSD.org>2006-08-07 23:35:49 +0000
commit012251a3785007f4c2b62a2f3fa4f6565c0844ad (patch)
treeacf7384d53e487deaf4f17dac1e632ca6d68a316 /usr.sbin/sade/label.c
parent3eeb401259c48fc216756107d2aecf7064ab359a (diff)
downloadFreeBSD-src-012251a3785007f4c2b62a2f3fa4f6565c0844ad.zip
FreeBSD-src-012251a3785007f4c2b62a2f3fa4f6565c0844ad.tar.gz
Say welcome to 'sade', the SysAdmins Disk Editor. It's the fdisk and disklabel part
of sysinstall. So sysinstall may retire now, we have the important non-install part of it covered. ATM it doesn't understand GEOM stuff (like mirror, stripe, raid, ...), but patches to change this and to clean it up internally are more than welcome. Submitted by: mami@nyitolap.hu
Diffstat (limited to 'usr.sbin/sade/label.c')
-rw-r--r--usr.sbin/sade/label.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c
index 21a9744..84d08aa 100644
--- a/usr.sbin/sade/label.c
+++ b/usr.sbin/sade/label.c
@@ -1,9 +1,4 @@
/*
- * The new sysinstall program.
- *
- * This is probably the last program in the `sysinstall' line - the next
- * generation being essentially a complete rewrite.
- *
* $FreeBSD$
*
* Copyright (c) 1995
@@ -34,7 +29,7 @@
*
*/
-#include "sysinstall.h"
+#include "sade.h"
#include <ctype.h>
#include <inttypes.h>
#include <libdisk.h>
@@ -826,8 +821,7 @@ print_command_summary(void)
{
mvprintw(17, 0, "The following commands are valid here (upper or lower case):");
mvprintw(18, 0, "C = Create D = Delete M = Mount pt.");
- if (!RunningAsInit)
- mvprintw(18, 56, "W = Write");
+ mvprintw(18, 56, "W = Write");
mvprintw(19, 0, "N = Newfs Opts Q = Finish S = Toggle SoftUpdates Z = Custom Newfs");
mvprintw(20, 0, "T = Toggle Newfs U = Undo A = Auto Defaults R = Delete+Merge");
mvprintw(22, 0, "Use F1 or ? to get more help, arrow keys to select.");
@@ -837,6 +831,7 @@ print_command_summary(void)
static void
clear_wins(void)
{
+ extern void print_label_chunks();
clear();
print_label_chunks();
}
OpenPOWER on IntegriCloud