summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/wizard.c
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2000-06-05 13:17:23 +0000
committernyan <nyan@FreeBSD.org>2000-06-05 13:17:23 +0000
commit6a7aa7f3d9d42126138b256ce2a6fe01ecd4d3a4 (patch)
treed4ae9bd04b53f4b71a4f6c8597f6153ee9c613e0 /usr.sbin/sade/wizard.c
parent2957ed6969367453170ee419e165102e862b1ecb (diff)
downloadFreeBSD-src-6a7aa7f3d9d42126138b256ce2a6fe01ecd4d3a4.zip
FreeBSD-src-6a7aa7f3d9d42126138b256ce2a6fe01ecd4d3a4.tar.gz
- Remove obsolete PC-card boot.flp hack. It was for making both PC-card
boot.flp and plain boot.flp. - Clean up crunchgen related routine. - Add PC-98 support. TODO: o Documentation o Fix some messages for PC-98 o Decrease the size of fixit.flp to 1.2MB o I18N (See: http://www.jp.FreeBSD.org/BootAsia/index.html) No response from jkh
Diffstat (limited to 'usr.sbin/sade/wizard.c')
-rw-r--r--usr.sbin/sade/wizard.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/usr.sbin/sade/wizard.c b/usr.sbin/sade/wizard.c
index 19a63de..a42dc62 100644
--- a/usr.sbin/sade/wizard.c
+++ b/usr.sbin/sade/wizard.c
@@ -125,8 +125,20 @@ slice_wizard(Disk *d)
free(cp);
continue;
}
+#ifdef PC98
+ if (!strcasecmp(*cmds,"create") && ncmd == 7) {
+ printf("Create=%d\n",
+ Create_Chunk(d,
+ strtol(cmds[1],0,0),
+ strtol(cmds[2],0,0),
+ strtol(cmds[3],0,0),
+ strtol(cmds[4],0,0),
+ strtol(cmds[5],0,0),
+ cmds[6]));
+ continue;
+ }
+#else
if (!strcasecmp(*cmds,"create") && ncmd == 6) {
-
printf("Create=%d\n",
Create_Chunk(d,
strtol(cmds[1],0,0),
@@ -136,6 +148,7 @@ slice_wizard(Disk *d)
strtol(cmds[5],0,0)));
continue;
}
+#endif
if (!strcasecmp(*cmds,"read")) {
db = d;
if (ncmd > 1)
@@ -166,7 +179,11 @@ slice_wizard(Disk *d)
printf("dedicate\t\t");
printf("bios cyl hd sect\n");
printf("collapse [pointer]\t\t");
+#ifdef PC98
+ printf("create offset size enum subtype flags name\n");
+#else
printf("create offset size enum subtype flags\n");
+#endif
printf("subtype(part): swap=1, ffs=7\t\t");
printf("delete pointer\n");
printf("list\t\t");
OpenPOWER on IntegriCloud