Tue Oct 7 09:58:16 2008 UTC ()
Most ports do not create /.profile /.termcap and /sysinst in the target
before extracting sets, so do not try to delete them after install.
Now the '/.profile' from etc.tgz will actually be left after install

Note: bebox, evppc, and sandpoint still have a md_copy_filesystem() which
dumps a copy of the install filesystem into the target before extracting,
so I've left them removing /.profile /.termcap and /sysinst after install.


(abs)
diff -r1.21 -r1.22 src/distrib/utils/sysinst/arch/acorn26/md.c
diff -r1.22 -r1.23 src/distrib/utils/sysinst/arch/acorn32/md.c
diff -r1.44 -r1.45 src/distrib/utils/sysinst/arch/alpha/md.c
diff -r1.20 -r1.21 src/distrib/utils/sysinst/arch/amiga/md.c
diff -r1.30 -r1.31 src/distrib/utils/sysinst/arch/arc/md.c
diff -r1.21 -r1.22 src/distrib/utils/sysinst/arch/atari/md.c
diff -r1.50 -r1.51 src/distrib/utils/sysinst/arch/bebox/md.c
diff -r1.19 -r1.20 src/distrib/utils/sysinst/arch/cats/md.c
diff -r1.1 -r1.2 src/distrib/utils/sysinst/arch/cobalt/md.c
diff -r1.20 -r1.21 src/distrib/utils/sysinst/arch/evbarm/md.c
diff -r1.3 -r1.4 src/distrib/utils/sysinst/arch/evbmips/md.c
diff -r1.26 -r1.27 src/distrib/utils/sysinst/arch/evbppc/md.c
diff -r1.5 -r1.6 src/distrib/utils/sysinst/arch/ews4800mips/md.c
diff -r1.25 -r1.26 src/distrib/utils/sysinst/arch/hp300/md.c
diff -r1.6 -r1.7 src/distrib/utils/sysinst/arch/hp700/md.c
diff -r1.4 -r1.5 src/distrib/utils/sysinst/arch/hpcarm/md.c
diff -r1.42 -r1.43 src/distrib/utils/sysinst/arch/hpcmips/md.c
diff -r1.118 -r1.119 src/distrib/utils/sysinst/arch/i386/md.c
diff -r1.1 -r1.2 src/distrib/utils/sysinst/arch/landisk/md.c
diff -r1.52 -r1.53 src/distrib/utils/sysinst/arch/mac68k/md.c
diff -r1.39 -r1.40 src/distrib/utils/sysinst/arch/macppc/md.c
diff -r1.14 -r1.15 src/distrib/utils/sysinst/arch/mipsco/md.c
diff -r1.20 -r1.21 src/distrib/utils/sysinst/arch/mvme68k/md.c
diff -r1.28 -r1.29 src/distrib/utils/sysinst/arch/news68k/md.c
diff -r1.16 -r1.17 src/distrib/utils/sysinst/arch/newsmips/md.c
diff -r1.3 -r1.4 src/distrib/utils/sysinst/arch/ofppc/md.c
diff -r1.21 -r1.22 src/distrib/utils/sysinst/arch/playstation2/md.c
diff -r1.60 -r1.61 src/distrib/utils/sysinst/arch/pmax/md.c
diff -r1.28 -r1.29 src/distrib/utils/sysinst/arch/prep/md.c
diff -r1.27 -r1.28 src/distrib/utils/sysinst/arch/sandpoint/md.c
diff -r1.23 -r1.24 src/distrib/utils/sysinst/arch/sgimips/md.c
diff -r1.22 -r1.23 src/distrib/utils/sysinst/arch/shark/md.c
diff -r1.46 -r1.47 src/distrib/utils/sysinst/arch/sparc/md.c
diff -r1.22 -r1.23 src/distrib/utils/sysinst/arch/sparc64/md.c
diff -r1.32 -r1.33 src/distrib/utils/sysinst/arch/vax/md.c
diff -r1.35 -r1.36 src/distrib/utils/sysinst/arch/x68k/md.c
diff -r1.2 -r1.3 src/distrib/utils/sysinst/arch/zaurus/md.c

cvs diff -r1.21 -r1.22 src/distrib/utils/sysinst/arch/acorn26/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/acorn26/Attic/md.c 2008/01/28 02:47:13 1.21
+++ src/distrib/utils/sysinst/arch/acorn26/Attic/md.c 2008/10/07 09:58:14 1.22
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.21 2008/01/28 02:47:13 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.22 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -320,30 +320,26 @@ md_update(void) @@ -320,30 +320,26 @@ md_update(void)
320 md_post_newfs(); 320 md_post_newfs();
321 wrefresh(curscr); 321 wrefresh(curscr);
322 wmove(stdscr, 0, 0); 322 wmove(stdscr, 0, 0);
323 wclear(stdscr); 323 wclear(stdscr);
324 wrefresh(stdscr); 324 wrefresh(stdscr);
325 return 1; 325 return 1;
326} 326}
327 327
328void 328void
329md_cleanup_install(void) 329md_cleanup_install(void)
330{ 330{
331#ifndef DEBUG 331#ifndef DEBUG
332 enable_rc_conf(); 332 enable_rc_conf();
333 
334 run_program(0, "rm -f %s", target_expand("/sysinst")); 
335 run_program(0, "rm -f %s", target_expand("/.termcap")); 
336 run_program(0, "rm -f %s", target_expand("/.profile")); 
337#endif 333#endif
338} 334}
339 335
340int 336int
341md_pre_update(void) 337md_pre_update(void)
342{ 338{
343 return 1; 339 return 1;
344} 340}
345 341
346void 342void
347md_init(void) 343md_init(void)
348{ 344{
349} 345}

cvs diff -r1.22 -r1.23 src/distrib/utils/sysinst/arch/acorn32/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/acorn32/Attic/md.c 2008/01/28 02:47:13 1.22
+++ src/distrib/utils/sysinst/arch/acorn32/Attic/md.c 2008/10/07 09:58:14 1.23
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.22 2008/01/28 02:47:13 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.23 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -320,30 +320,26 @@ md_update(void) @@ -320,30 +320,26 @@ md_update(void)
320 md_post_newfs(); 320 md_post_newfs();
321 wrefresh(curscr); 321 wrefresh(curscr);
322 wmove(stdscr, 0, 0); 322 wmove(stdscr, 0, 0);
323 wclear(stdscr); 323 wclear(stdscr);
324 wrefresh(stdscr); 324 wrefresh(stdscr);
325 return 1; 325 return 1;
326} 326}
327 327
328void 328void
329md_cleanup_install(void) 329md_cleanup_install(void)
330{ 330{
331#ifndef DEBUG 331#ifndef DEBUG
332 enable_rc_conf(); 332 enable_rc_conf();
333 
334 run_program(0, "rm -f %s", target_expand("/sysinst")); 
335 run_program(0, "rm -f %s", target_expand("/.termcap")); 
336 run_program(0, "rm -f %s", target_expand("/.profile")); 
337#endif 333#endif
338} 334}
339 335
340int 336int
341md_pre_update(void) 337md_pre_update(void)
342{ 338{
343 return 1; 339 return 1;
344} 340}
345 341
346void 342void
347md_init(void) 343md_init(void)
348{ 344{
349} 345}

cvs diff -r1.44 -r1.45 src/distrib/utils/sysinst/arch/alpha/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/alpha/Attic/md.c 2008/01/28 02:47:13 1.44
+++ src/distrib/utils/sysinst/arch/alpha/Attic/md.c 2008/10/07 09:58:14 1.45
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.44 2008/01/28 02:47:13 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.45 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -163,31 +163,28 @@ md_update(void) @@ -163,31 +163,28 @@ md_update(void)
163 endwin(); 163 endwin();
164 md_copy_filesystem (); 164 md_copy_filesystem ();
165 md_post_newfs(); 165 md_post_newfs();
166 wrefresh(curscr); 166 wrefresh(curscr);
167 wmove(stdscr, 0, 0); 167 wmove(stdscr, 0, 0);
168 wclear(stdscr); 168 wclear(stdscr);
169 wrefresh(stdscr); 169 wrefresh(stdscr);
170 return 1; 170 return 1;
171} 171}
172 172
173void 173void
174md_cleanup_install(void) 174md_cleanup_install(void)
175{ 175{
176 enable_rc_conf(); 
177 176
178 run_program(0, "rm -f %s", target_expand("/sysinst")); 177 enable_rc_conf();
179 run_program(0, "rm -f %s", target_expand("/.termcap")); 
180 run_program(0, "rm -f %s", target_expand("/.profile")); 
181} 178}
182 179
183int 180int
184md_pre_update(void) 181md_pre_update(void)
185{ 182{
186 return 1; 183 return 1;
187} 184}
188 185
189void 186void
190md_init(void) 187md_init(void)
191{ 188{
192} 189}
193 190

cvs diff -r1.20 -r1.21 src/distrib/utils/sysinst/arch/amiga/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/amiga/Attic/md.c 2008/01/28 02:47:13 1.20
+++ src/distrib/utils/sysinst/arch/amiga/Attic/md.c 2008/10/07 09:58:14 1.21
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.20 2008/01/28 02:47:13 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.21 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -102,30 +102,26 @@ md_update(void) @@ -102,30 +102,26 @@ md_update(void)
102 wrefresh(curscr); 102 wrefresh(curscr);
103 wmove(stdscr, 0, 0); 103 wmove(stdscr, 0, 0);
104 wclear(stdscr); 104 wclear(stdscr);
105 wrefresh(stdscr); 105 wrefresh(stdscr);
106 return 1; 106 return 1;
107} 107}
108 108
109 109
110void 110void
111md_cleanup_install(void) 111md_cleanup_install(void)
112{ 112{
113 113
114 enable_rc_conf(); 114 enable_rc_conf();
115 
116 run_program(0, "rm -f %s", target_expand("/sysinst")); 
117 run_program(0, "rm -f %s", target_expand("/.termcap")); 
118 run_program(0, "rm -f %s", target_expand("/.profile")); 
119} 115}
120 116
121int 117int
122md_pre_update() 118md_pre_update()
123{ 119{
124 return 1; 120 return 1;
125} 121}
126 122
127void 123void
128md_init() 124md_init()
129{ 125{
130} 126}
131 127

cvs diff -r1.30 -r1.31 src/distrib/utils/sysinst/arch/arc/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/arc/Attic/md.c 2008/09/13 16:59:42 1.30
+++ src/distrib/utils/sysinst/arch/arc/Attic/md.c 2008/10/07 09:58:14 1.31
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.30 2008/09/13 16:59:42 tsutsui Exp $ */ 1/* $NetBSD: md.c,v 1.31 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -305,30 +305,26 @@ md_update(void) @@ -305,30 +305,26 @@ md_update(void)
305 wrefresh(curscr); 305 wrefresh(curscr);
306 wmove(stdscr, 0, 0); 306 wmove(stdscr, 0, 0);
307 wclear(stdscr); 307 wclear(stdscr);
308 wrefresh(stdscr); 308 wrefresh(stdscr);
309 return 1; 309 return 1;
310} 310}
311 311
312 312
313void 313void
314md_cleanup_install(void) 314md_cleanup_install(void)
315{ 315{
316 316
317 enable_rc_conf(); 317 enable_rc_conf();
318  
319 run_program(0, "rm -f %s", target_expand("/sysinst")); 
320 run_program(0, "rm -f %s", target_expand("/.termcap")); 
321 run_program(0, "rm -f %s", target_expand("/.profile")); 
322 318
323 msg_display(MSG_howtoboot); 319 msg_display(MSG_howtoboot);
324 process_menu(MENU_ok, NULL); 320 process_menu(MENU_ok, NULL);
325} 321}
326 322
327int 323int
328md_bios_info(char *dev) 324md_bios_info(char *dev)
329{ 325{
330 int cyl, head, sec; 326 int cyl, head, sec;
331 327
332 msg_display(MSG_nobiosgeom, dlcyl, dlhead, dlsec); 328 msg_display(MSG_nobiosgeom, dlcyl, dlhead, dlsec);
333 if (guess_biosgeom_from_mbr(&mbr, &cyl, &head, &sec) >= 0) 329 if (guess_biosgeom_from_mbr(&mbr, &cyl, &head, &sec) >= 0)
334 msg_display_add(MSG_biosguess, cyl, head, sec); 330 msg_display_add(MSG_biosguess, cyl, head, sec);

cvs diff -r1.21 -r1.22 src/distrib/utils/sysinst/arch/atari/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/atari/Attic/md.c 2008/01/28 02:47:13 1.21
+++ src/distrib/utils/sysinst/arch/atari/Attic/md.c 2008/10/07 09:58:14 1.22
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.21 2008/01/28 02:47:13 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.22 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -129,30 +129,26 @@ md_update(void) @@ -129,30 +129,26 @@ md_update(void)
129 wrefresh(curscr); 129 wrefresh(curscr);
130 wmove(stdscr, 0, 0); 130 wmove(stdscr, 0, 0);
131 wclear(stdscr); 131 wclear(stdscr);
132 wrefresh(stdscr); 132 wrefresh(stdscr);
133 return 1; 133 return 1;
134} 134}
135 135
136 136
137void 137void
138md_cleanup_install(void) 138md_cleanup_install(void)
139{ 139{
140 140
141 enable_rc_conf(); 141 enable_rc_conf();
142 
143 run_program(0, "rm -f %s", target_expand("/sysinst")); 
144 run_program(0, "rm -f %s", target_expand("/.termcap")); 
145 run_program(0, "rm -f %s", target_expand("/.profile")); 
146} 142}
147 143
148int 144int
149md_pre_update(void) 145md_pre_update(void)
150{ 146{
151 return 1; 147 return 1;
152} 148}
153 149
154void 150void
155md_init(void) 151md_init(void)
156{ 152{
157} 153}
158 154

cvs diff -r1.50 -r1.51 src/distrib/utils/sysinst/arch/bebox/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/bebox/Attic/md.c 2008/01/28 02:47:13 1.50
+++ src/distrib/utils/sysinst/arch/bebox/Attic/md.c 2008/10/07 09:58:14 1.51
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.50 2008/01/28 02:47:13 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.51 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -138,26 +138,27 @@ md_update(void) @@ -138,26 +138,27 @@ md_update(void)
138 wrefresh(stdscr); 138 wrefresh(stdscr);
139 return 1; 139 return 1;
140} 140}
141 141
142void 142void
143md_cleanup_install(void) 143md_cleanup_install(void)
144{ 144{
145 145
146 enable_rc_conf(); 146 enable_rc_conf();
147 147
148 run_program(0, "rm -f %s", target_expand("/sysinst")); 148 run_program(0, "rm -f %s", target_expand("/sysinst"));
149 run_program(0, "rm -f %s", target_expand("/.termcap")); 149 run_program(0, "rm -f %s", target_expand("/.termcap"));
150 run_program(0, "rm -f %s", target_expand("/.profile")); 150 run_program(0, "rm -f %s", target_expand("/.profile"));
 151 /* XXX - the above wipes /.profile from etc.tgz */
151} 152}
152 153
153int 154int
154md_pre_update(void) 155md_pre_update(void)
155{ 156{
156 return 1; 157 return 1;
157} 158}
158 159
159void 160void
160md_init(void) 161md_init(void)
161{ 162{
162} 163}
163 164

cvs diff -r1.19 -r1.20 src/distrib/utils/sysinst/arch/cats/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/cats/Attic/md.c 2008/01/28 02:47:13 1.19
+++ src/distrib/utils/sysinst/arch/cats/Attic/md.c 2008/10/07 09:58:14 1.20
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.19 2008/01/28 02:47:13 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.20 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -173,30 +173,26 @@ md_update(void) @@ -173,30 +173,26 @@ md_update(void)
173 md_post_newfs(); 173 md_post_newfs();
174 wrefresh(curscr); 174 wrefresh(curscr);
175 wmove(stdscr, 0, 0); 175 wmove(stdscr, 0, 0);
176 wclear(stdscr); 176 wclear(stdscr);
177 wrefresh(stdscr); 177 wrefresh(stdscr);
178 return 1; 178 return 1;
179} 179}
180 180
181void 181void
182md_cleanup_install(void) 182md_cleanup_install(void)
183{ 183{
184#ifndef DEBUG 184#ifndef DEBUG
185 enable_rc_conf(); 185 enable_rc_conf();
186 
187 run_program(0, "rm -f %s", target_expand("/sysinst")); 
188 run_program(0, "rm -f %s", target_expand("/.termcap")); 
189 run_program(0, "rm -f %s", target_expand("/.profile")); 
190#endif 186#endif
191} 187}
192 188
193int 189int
194md_pre_update(void) 190md_pre_update(void)
195{ 191{
196 return 1; 192 return 1;
197} 193}
198 194
199void 195void
200md_init(void) 196md_init(void)
201{ 197{
202} 198}

cvs diff -r1.1 -r1.2 src/distrib/utils/sysinst/arch/cobalt/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/cobalt/Attic/md.c 2008/02/02 09:14:32 1.1
+++ src/distrib/utils/sysinst/arch/cobalt/Attic/md.c 2008/10/07 09:58:14 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.1 2008/02/02 09:14:32 tsutsui Exp $ */ 1/* $NetBSD: md.c,v 1.2 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -323,30 +323,26 @@ md_update(void) @@ -323,30 +323,26 @@ md_update(void)
323 wrefresh(curscr); 323 wrefresh(curscr);
324 wmove(stdscr, 0, 0); 324 wmove(stdscr, 0, 0);
325 wclear(stdscr); 325 wclear(stdscr);
326 wrefresh(stdscr); 326 wrefresh(stdscr);
327 return 1; 327 return 1;
328} 328}
329 329
330 330
331void 331void
332md_cleanup_install(void) 332md_cleanup_install(void)
333{ 333{
334 334
335 enable_rc_conf(); 335 enable_rc_conf();
336  
337 run_program(0, "rm -f %s", target_expand("/sysinst")); 
338 run_program(0, "rm -f %s", target_expand("/.termcap")); 
339 run_program(0, "rm -f %s", target_expand("/.profile")); 
340} 336}
341 337
342int 338int
343md_bios_info(char *dev) 339md_bios_info(char *dev)
344{ 340{
345 int cyl, head, sec; 341 int cyl, head, sec;
346 342
347 msg_display(MSG_nobiosgeom, dlcyl, dlhead, dlsec); 343 msg_display(MSG_nobiosgeom, dlcyl, dlhead, dlsec);
348 if (guess_biosgeom_from_mbr(&mbr, &cyl, &head, &sec) >= 0) 344 if (guess_biosgeom_from_mbr(&mbr, &cyl, &head, &sec) >= 0)
349 msg_display_add(MSG_biosguess, cyl, head, sec); 345 msg_display_add(MSG_biosguess, cyl, head, sec);
350 set_bios_geom(cyl, head, sec); 346 set_bios_geom(cyl, head, sec);
351 347
352 return 0; 348 return 0;

cvs diff -r1.20 -r1.21 src/distrib/utils/sysinst/arch/evbarm/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/evbarm/Attic/md.c 2008/01/28 02:47:14 1.20
+++ src/distrib/utils/sysinst/arch/evbarm/Attic/md.c 2008/10/07 09:58:14 1.21
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.20 2008/01/28 02:47:14 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.21 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -146,30 +146,26 @@ md_update(void) @@ -146,30 +146,26 @@ md_update(void)
146 md_post_newfs(); 146 md_post_newfs();
147 wrefresh(curscr); 147 wrefresh(curscr);
148 wmove(stdscr, 0, 0); 148 wmove(stdscr, 0, 0);
149 wclear(stdscr); 149 wclear(stdscr);
150 wrefresh(stdscr); 150 wrefresh(stdscr);
151 return 1; 151 return 1;
152} 152}
153 153
154void 154void
155md_cleanup_install(void) 155md_cleanup_install(void)
156{ 156{
157#ifndef DEBUG 157#ifndef DEBUG
158 enable_rc_conf(); 158 enable_rc_conf();
159 
160 run_program(0, "rm -f %s", target_expand("/sysinst")); 
161 run_program(0, "rm -f %s", target_expand("/.termcap")); 
162 run_program(0, "rm -f %s", target_expand("/.profile")); 
163#endif 159#endif
164} 160}
165 161
166int 162int
167md_pre_update(void) 163md_pre_update(void)
168{ 164{
169 return 1; 165 return 1;
170} 166}
171 167
172void 168void
173md_init(void) 169md_init(void)
174{ 170{
175} 171}

cvs diff -r1.3 -r1.4 src/distrib/utils/sysinst/arch/evbmips/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/evbmips/Attic/md.c 2008/01/28 02:47:14 1.3
+++ src/distrib/utils/sysinst/arch/evbmips/Attic/md.c 2008/10/07 09:58:14 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.3 2008/01/28 02:47:14 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.4 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997,2002 Piermont Information Systems Inc. 4 * Copyright 1997,2002 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -50,50 +50,32 @@ @@ -50,50 +50,32 @@
50 50
51int 51int
52md_check_partitions(void) 52md_check_partitions(void)
53{ 53{
54 54
55 return 1; 55 return 1;
56} 56}
57 57
58void 58void
59md_cleanup_install(void) 59md_cleanup_install(void)
60{ 60{
61 61
62 enable_rc_conf(); 62 enable_rc_conf();
63 
64 run_program(0, "rm -f %s", target_expand("/sysinst")); 
65 run_program(0, "rm -f %s", target_expand("/.termcap")); 
66 run_program(0, "rm -f %s", target_expand("/.profile")); 
67} 63}
68 64
69int 65int
70md_copy_filesystem(void) 66md_copy_filesystem(void)
71{ 67{
72 68
73#if 0 
74 if (target_already_root()) { 
75 return 0; 
76 } 
77 
78 /* Copy the instbin(s) to the disk */ 
79 run_program(RUN_DISPLAY | RUN_PROGRESS,  
80 "pax -X -O -r -w -pe / %s", targetroot_mnt); 
81 
82 /* Copy next-stage install profile into target /.profile. */ 
83 if (cp_to_target ("/tmp/.hdprofile", "/.profile")!= 0) 
84 return 1; 
85 return cp_to_target ("/usr/share/misc/termcap", "/.termcap"); 
86#endif 
87 return 0; 69 return 0;
88} 70}
89 71
90int 72int
91md_get_info(void) 73md_get_info(void)
92{ 74{
93 75
94 read_mbr(diskdev, &mbr); 76 read_mbr(diskdev, &mbr);
95 md_bios_info(diskdev); 77 md_bios_info(diskdev);
96 return edit_mbr(&mbr); 78 return edit_mbr(&mbr);
97} 79}
98 80
99int 81int

cvs diff -r1.26 -r1.27 src/distrib/utils/sysinst/arch/evbppc/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/evbppc/Attic/md.c 2008/01/28 02:47:14 1.26
+++ src/distrib/utils/sysinst/arch/evbppc/Attic/md.c 2008/10/07 09:58:14 1.27
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.26 2008/01/28 02:47:14 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.27 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997,2002 Piermont Information Systems Inc. 4 * Copyright 1997,2002 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -142,26 +142,27 @@ md_update(void) @@ -142,26 +142,27 @@ md_update(void)
142 wrefresh(stdscr); 142 wrefresh(stdscr);
143 return 1; 143 return 1;
144} 144}
145 145
146void 146void
147md_cleanup_install(void) 147md_cleanup_install(void)
148{ 148{
149 149
150 enable_rc_conf(); 150 enable_rc_conf();
151 151
152 run_program(0, "rm -f %s", target_expand("/sysinst")); 152 run_program(0, "rm -f %s", target_expand("/sysinst"));
153 run_program(0, "rm -f %s", target_expand("/.termcap")); 153 run_program(0, "rm -f %s", target_expand("/.termcap"));
154 run_program(0, "rm -f %s", target_expand("/.profile")); 154 run_program(0, "rm -f %s", target_expand("/.profile"));
 155 /* XXX - the above wipes /.profile from etc.tgz */
155} 156}
156 157
157int 158int
158md_pre_update(void) 159md_pre_update(void)
159{ 160{
160 return 1; 161 return 1;
161} 162}
162 163
163void 164void
164md_init(void) 165md_init(void)
165{ 166{
166} 167}
167 168

cvs diff -r1.5 -r1.6 src/distrib/utils/sysinst/arch/ews4800mips/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/ews4800mips/Attic/md.c 2008/01/28 02:47:14 1.5
+++ src/distrib/utils/sysinst/arch/ews4800mips/Attic/md.c 2008/10/07 09:58:14 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.5 2008/01/28 02:47:14 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.6 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -176,30 +176,26 @@ md_update(void) @@ -176,30 +176,26 @@ md_update(void)
176 md_post_newfs(); 176 md_post_newfs();
177 wrefresh(curscr); 177 wrefresh(curscr);
178 wmove(stdscr, 0, 0); 178 wmove(stdscr, 0, 0);
179 wclear(stdscr); 179 wclear(stdscr);
180 wrefresh(stdscr); 180 wrefresh(stdscr);
181 return 1; 181 return 1;
182} 182}
183 183
184void 184void
185md_cleanup_install(void) 185md_cleanup_install(void)
186{ 186{
187 187
188 enable_rc_conf(); 188 enable_rc_conf();
189 
190 run_program(0, "rm -f %s", target_expand("/sysinst")); 
191 run_program(0, "rm -f %s", target_expand("/.termcap")); 
192 run_program(0, "rm -f %s", target_expand("/.profile")); 
193} 189}
194 190
195int 191int
196md_pre_update(void) 192md_pre_update(void)
197{ 193{
198 194
199 return 1; 195 return 1;
200} 196}
201 197
202void 198void
203md_init(void) 199md_init(void)
204{ 200{
205} 201}

cvs diff -r1.25 -r1.26 src/distrib/utils/sysinst/arch/hp300/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/hp300/Attic/md.c 2008/01/28 02:47:14 1.25
+++ src/distrib/utils/sysinst/arch/hp300/Attic/md.c 2008/10/07 09:58:14 1.26
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.25 2008/01/28 02:47:14 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.26 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -220,29 +220,26 @@ md_update(void) @@ -220,29 +220,26 @@ md_update(void)
220 wmove(stdscr, 0, 0); 220 wmove(stdscr, 0, 0);
221 wclear(stdscr); 221 wclear(stdscr);
222 wrefresh(stdscr); 222 wrefresh(stdscr);
223 return 1; 223 return 1;
224} 224}
225 225
226void 226void
227md_cleanup_install(void) 227md_cleanup_install(void)
228{ 228{
229 229
230#ifdef notyet /* sed is too large for ramdisk */ 230#ifdef notyet /* sed is too large for ramdisk */
231 enable_rc_conf(); 231 enable_rc_conf();
232#endif 232#endif
233 run_program(0, "rm -f %s", target_expand("/sysinst")); 
234 run_program(0, "rm -f %s", target_expand("/.termcap")); 
235 run_program(0, "rm -f %s", target_expand("/.profile")); 
236} 233}
237 234
238int 235int
239md_pre_update(void) 236md_pre_update(void)
240{ 237{
241 238
242 if (get_ramsize() < 6) 239 if (get_ramsize() < 6)
243 set_swap(diskdev, NULL); 240 set_swap(diskdev, NULL);
244 return 1; 241 return 1;
245} 242}
246 243
247void 244void
248md_init(void) 245md_init(void)

cvs diff -r1.6 -r1.7 src/distrib/utils/sysinst/arch/hp700/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/hp700/Attic/md.c 2008/02/02 06:11:23 1.6
+++ src/distrib/utils/sysinst/arch/hp700/Attic/md.c 2008/10/07 09:58:14 1.7
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.6 2008/02/02 06:11:23 itohy Exp $ */ 1/* $NetBSD: md.c,v 1.7 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -182,30 +182,26 @@ md_update(void) @@ -182,30 +182,26 @@ md_update(void)
182 md_post_newfs(); 182 md_post_newfs();
183 wrefresh(curscr); 183 wrefresh(curscr);
184 wmove(stdscr, 0, 0); 184 wmove(stdscr, 0, 0);
185 wclear(stdscr); 185 wclear(stdscr);
186 wrefresh(stdscr); 186 wrefresh(stdscr);
187 return 1; 187 return 1;
188} 188}
189 189
190void 190void
191md_cleanup_install(void) 191md_cleanup_install(void)
192{ 192{
193 193
194 enable_rc_conf(); 194 enable_rc_conf();
195 
196 run_program(0, "rm -f %s", target_expand("/sysinst")); 
197 run_program(0, "rm -f %s", target_expand("/.termcap")); 
198 run_program(0, "rm -f %s", target_expand("/.profile")); 
199} 195}
200 196
201int 197int
202md_pre_update() 198md_pre_update()
203{ 199{
204 return 1; 200 return 1;
205} 201}
206 202
207void 203void
208md_init() 204md_init()
209{ 205{
210} 206}
211 207

cvs diff -r1.4 -r1.5 src/distrib/utils/sysinst/arch/hpcarm/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/hpcarm/Attic/md.c 2008/01/28 02:47:14 1.4
+++ src/distrib/utils/sysinst/arch/hpcarm/Attic/md.c 2008/10/07 09:58:14 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.4 2008/01/28 02:47:14 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.5 2008/10/07 09:58:14 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -124,30 +124,26 @@ md_update(void) @@ -124,30 +124,26 @@ md_update(void)
124 wrefresh(curscr); 124 wrefresh(curscr);
125 wmove(stdscr, 0, 0); 125 wmove(stdscr, 0, 0);
126 wclear(stdscr); 126 wclear(stdscr);
127 wrefresh(stdscr); 127 wrefresh(stdscr);
128 return 1; 128 return 1;
129} 129}
130 130
131 131
132void 132void
133md_cleanup_install(void) 133md_cleanup_install(void)
134{ 134{
135 135
136 enable_rc_conf(); 136 enable_rc_conf();
137 
138 run_program(0, "rm -f %s", target_expand("/sysinst")); 
139 run_program(0, "rm -f %s", target_expand("/.termcap")); 
140 run_program(0, "rm -f %s", target_expand("/.profile")); 
141} 137}
142 138
143int 139int
144md_bios_info(char *dev) 140md_bios_info(char *dev)
145{ 141{
146 int cyl, head, sec; 142 int cyl, head, sec;
147 143
148 msg_display(MSG_nobiosgeom, dlcyl, dlhead, dlsec); 144 msg_display(MSG_nobiosgeom, dlcyl, dlhead, dlsec);
149 if (guess_biosgeom_from_mbr(&mbr, &cyl, &head, &sec) >= 0) 145 if (guess_biosgeom_from_mbr(&mbr, &cyl, &head, &sec) >= 0)
150 msg_display_add(MSG_biosguess, cyl, head, sec); 146 msg_display_add(MSG_biosguess, cyl, head, sec);
151 set_bios_geom(cyl, head, sec); 147 set_bios_geom(cyl, head, sec);
152 return 0; 148 return 0;
153} 149}

cvs diff -r1.42 -r1.43 src/distrib/utils/sysinst/arch/hpcmips/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/hpcmips/Attic/md.c 2008/01/28 02:47:14 1.42
+++ src/distrib/utils/sysinst/arch/hpcmips/Attic/md.c 2008/10/07 09:58:15 1.43
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.42 2008/01/28 02:47:14 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.43 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -123,30 +123,26 @@ md_update(void) @@ -123,30 +123,26 @@ md_update(void)
123 wrefresh(curscr); 123 wrefresh(curscr);
124 wmove(stdscr, 0, 0); 124 wmove(stdscr, 0, 0);
125 wclear(stdscr); 125 wclear(stdscr);
126 wrefresh(stdscr); 126 wrefresh(stdscr);
127 return 1; 127 return 1;
128} 128}
129 129
130 130
131void 131void
132md_cleanup_install(void) 132md_cleanup_install(void)
133{ 133{
134 134
135 enable_rc_conf(); 135 enable_rc_conf();
136 
137 run_program(0, "rm -f %s", target_expand("/sysinst")); 
138 run_program(0, "rm -f %s", target_expand("/.termcap")); 
139 run_program(0, "rm -f %s", target_expand("/.profile")); 
140} 136}
141 137
142int 138int
143md_bios_info(char *dev) 139md_bios_info(char *dev)
144{ 140{
145 int cyl, head, sec; 141 int cyl, head, sec;
146 142
147 msg_display(MSG_nobiosgeom, dlcyl, dlhead, dlsec); 143 msg_display(MSG_nobiosgeom, dlcyl, dlhead, dlsec);
148 if (guess_biosgeom_from_mbr(&mbr, &cyl, &head, &sec) >= 0) 144 if (guess_biosgeom_from_mbr(&mbr, &cyl, &head, &sec) >= 0)
149 msg_display_add(MSG_biosguess, cyl, head, sec); 145 msg_display_add(MSG_biosguess, cyl, head, sec);
150 set_bios_geom(cyl, head, sec); 146 set_bios_geom(cyl, head, sec);
151 return 0; 147 return 0;
152} 148}

cvs diff -r1.118 -r1.119 src/distrib/utils/sysinst/arch/i386/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/i386/Attic/md.c 2008/01/28 02:47:14 1.118
+++ src/distrib/utils/sysinst/arch/i386/Attic/md.c 2008/10/07 09:58:15 1.119
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.118 2008/01/28 02:47:14 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.119 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -475,29 +475,26 @@ md_cleanup_install(void) @@ -475,29 +475,26 @@ md_cleanup_install(void)
475 * For GENERIC_TINY, do not enable any extra screens or wsmux. 475 * For GENERIC_TINY, do not enable any extra screens or wsmux.
476 * Otherwise, run getty on 4 VTs. 476 * Otherwise, run getty on 4 VTs.
477 */ 477 */
478 if (get_kernel_set() == SET_KERNEL_TINY) 478 if (get_kernel_set() == SET_KERNEL_TINY)
479 run_program(RUN_CHROOT, 479 run_program(RUN_CHROOT,
480 "sed -an -e '/^screen/s/^/#/;/^mux/s/^/#/;" 480 "sed -an -e '/^screen/s/^/#/;/^mux/s/^/#/;"
481 "H;$!d;g;w /etc/wscons.conf' /etc/wscons.conf"); 481 "H;$!d;g;w /etc/wscons.conf' /etc/wscons.conf");
482 else 482 else
483#endif 483#endif
484 run_program(RUN_CHROOT, 484 run_program(RUN_CHROOT,
485 "sed -an -e '/^ttyE[1-9]/s/off/on/;" 485 "sed -an -e '/^ttyE[1-9]/s/off/on/;"
486 "H;$!d;g;w /etc/ttys' /etc/ttys"); 486 "H;$!d;g;w /etc/ttys' /etc/ttys");
487 487
488 run_program(0, "rm -f %s", target_expand("/sysinst")); 
489 run_program(0, "rm -f %s", target_expand("/.termcap")); 
490 run_program(0, "rm -f %s", target_expand("/.profile")); 
491} 488}
492 489
493int 490int
494md_bios_info(dev) 491md_bios_info(dev)
495 char *dev; 492 char *dev;
496{ 493{
497 static struct disklist *disklist = NULL; 494 static struct disklist *disklist = NULL;
498 static int mib[2] = {CTL_MACHDEP, CPU_DISKINFO}; 495 static int mib[2] = {CTL_MACHDEP, CPU_DISKINFO};
499 int i; 496 int i;
500 size_t len; 497 size_t len;
501 struct biosdisk_info *bip; 498 struct biosdisk_info *bip;
502 struct nativedisk_info *nip = NULL, *nat; 499 struct nativedisk_info *nip = NULL, *nat;
503 int cyl, head, sec; 500 int cyl, head, sec;

cvs diff -r1.1 -r1.2 src/distrib/utils/sysinst/arch/landisk/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/landisk/Attic/md.c 2008/04/14 17:24:56 1.1
+++ src/distrib/utils/sysinst/arch/landisk/Attic/md.c 2008/10/07 09:58:15 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.1 2008/04/14 17:24:56 skrll Exp $ */ 1/* $NetBSD: md.c,v 1.2 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997,2002 Piermont Information Systems Inc. 4 * Copyright 1997,2002 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -50,30 +50,26 @@ @@ -50,30 +50,26 @@
50 50
51int 51int
52md_check_partitions(void) 52md_check_partitions(void)
53{ 53{
54 54
55 return 1; 55 return 1;
56} 56}
57 57
58void 58void
59md_cleanup_install(void) 59md_cleanup_install(void)
60{ 60{
61 61
62 enable_rc_conf(); 62 enable_rc_conf();
63 
64 run_program(0, "rm -f %s", target_expand("/sysinst")); 
65 run_program(0, "rm -f %s", target_expand("/.termcap")); 
66 run_program(0, "rm -f %s", target_expand("/.profile")); 
67} 63}
68 64
69int 65int
70md_copy_filesystem(void) 66md_copy_filesystem(void)
71{ 67{
72 68
73 return 0; 69 return 0;
74} 70}
75 71
76int 72int
77md_get_info(void) 73md_get_info(void)
78{ 74{
79 75

cvs diff -r1.52 -r1.53 src/distrib/utils/sysinst/arch/mac68k/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/mac68k/Attic/md.c 2008/05/24 21:42:52 1.52
+++ src/distrib/utils/sysinst/arch/mac68k/Attic/md.c 2008/10/07 09:58:15 1.53
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.52 2008/05/24 21:42:52 hauke Exp $ */ 1/* $NetBSD: md.c,v 1.53 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -1123,30 +1123,26 @@ md_update (void) @@ -1123,30 +1123,26 @@ md_update (void)
1123 wrefresh(curscr); 1123 wrefresh(curscr);
1124 wmove(stdscr, 0, 0); 1124 wmove(stdscr, 0, 0);
1125 wclear(stdscr); 1125 wclear(stdscr);
1126 wrefresh(stdscr); 1126 wrefresh(stdscr);
1127 return 1; 1127 return 1;
1128} 1128}
1129 1129
1130 1130
1131void 1131void
1132md_cleanup_install(void) 1132md_cleanup_install(void)
1133{ 1133{
1134 1134
1135 enable_rc_conf(); 1135 enable_rc_conf();
1136 
1137 run_program(0, "rm -f %s", target_expand("/sysinst")); 
1138 run_program(0, "rm -f %s", target_expand("/.termcap")); 
1139 run_program(0, "rm -f %s", target_expand("/.profile")); 
1140} 1136}
1141 1137
1142int 1138int
1143md_pre_update() 1139md_pre_update()
1144{ 1140{
1145 return 0; 1141 return 0;
1146} 1142}
1147 1143
1148void 1144void
1149md_init() 1145md_init()
1150{ 1146{
1151} 1147}
1152 1148

cvs diff -r1.39 -r1.40 src/distrib/utils/sysinst/arch/macppc/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/macppc/Attic/md.c 2008/01/28 02:47:15 1.39
+++ src/distrib/utils/sysinst/arch/macppc/Attic/md.c 2008/10/07 09:58:15 1.40
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.39 2008/01/28 02:47:15 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.40 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -165,32 +165,28 @@ md_update(void) @@ -165,32 +165,28 @@ md_update(void)
165 endwin(); 165 endwin();
166 md_copy_filesystem (); 166 md_copy_filesystem ();
167 md_post_newfs(); 167 md_post_newfs();
168 wrefresh(curscr); 168 wrefresh(curscr);
169 wmove(stdscr, 0, 0); 169 wmove(stdscr, 0, 0);
170 wclear(stdscr); 170 wclear(stdscr);
171 wrefresh(stdscr); 171 wrefresh(stdscr);
172 return 1; 172 return 1;
173} 173}
174 174
175void 175void
176md_cleanup_install(void) 176md_cleanup_install(void)
177{ 177{
178  
179 enable_rc_conf(); 
180 178
181 run_program(0, "rm -f %s", target_expand("/sysinst")); 179 enable_rc_conf();
182 run_program(0, "rm -f %s", target_expand("/.termcap")); 
183 run_program(0, "rm -f %s", target_expand("/.profile")); 
184} 180}
185 181
186int 182int
187md_pre_update(void) 183md_pre_update(void)
188{ 184{
189 return 1; 185 return 1;
190} 186}
191 187
192void 188void
193md_init(void) 189md_init(void)
194{ 190{
195} 191}
196 192

cvs diff -r1.14 -r1.15 src/distrib/utils/sysinst/arch/mipsco/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/mipsco/Attic/md.c 2008/01/28 02:47:15 1.14
+++ src/distrib/utils/sysinst/arch/mipsco/Attic/md.c 2008/10/07 09:58:15 1.15
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.14 2008/01/28 02:47:15 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.15 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -193,30 +193,26 @@ md_update(void) @@ -193,30 +193,26 @@ md_update(void)
193 md_post_newfs(); 193 md_post_newfs();
194 clearok(stdscr, TRUE); 194 clearok(stdscr, TRUE);
195 wmove(stdscr, 0, 0); 195 wmove(stdscr, 0, 0);
196 wclear(stdscr); 196 wclear(stdscr);
197 wrefresh(stdscr); 197 wrefresh(stdscr);
198 return 1; 198 return 1;
199} 199}
200 200
201void 201void
202md_cleanup_install(void) 202md_cleanup_install(void)
203{ 203{
204 204
205 enable_rc_conf(); 205 enable_rc_conf();
206 
207 run_program(0, "rm -f %s", target_expand("/sysinst")); 
208 run_program(0, "rm -f %s", target_expand("/.termcap")); 
209 run_program(0, "rm -f %s", target_expand("/.profile")); 
210} 206}
211 207
212int 208int
213md_pre_update() 209md_pre_update()
214{ 210{
215 return 1; 211 return 1;
216} 212}
217 213
218void 214void
219md_init() 215md_init()
220{ 216{
221} 217}
222 218

cvs diff -r1.20 -r1.21 src/distrib/utils/sysinst/arch/mvme68k/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/mvme68k/Attic/md.c 2008/01/28 02:47:15 1.20
+++ src/distrib/utils/sysinst/arch/mvme68k/Attic/md.c 2008/10/07 09:58:15 1.21
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.20 2008/01/28 02:47:15 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.21 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -220,29 +220,26 @@ md_update(void) @@ -220,29 +220,26 @@ md_update(void)
220 wmove(stdscr, 0, 0); 220 wmove(stdscr, 0, 0);
221 wclear(stdscr); 221 wclear(stdscr);
222 wrefresh(stdscr); 222 wrefresh(stdscr);
223 return (1); 223 return (1);
224} 224}
225 225
226void 226void
227md_cleanup_install(void) 227md_cleanup_install(void)
228{ 228{
229  229
230#ifdef notyet /* sed is too large for ramdisk */ 230#ifdef notyet /* sed is too large for ramdisk */
231 enable_rc_conf(); 231 enable_rc_conf();
232#endif 232#endif
233 run_program(0, "rm -f %s", target_expand("/sysinst")); 
234 run_program(0, "rm -f %s", target_expand("/.termcap")); 
235 run_program(0, "rm -f %s", target_expand("/.profile")); 
236} 233}
237 234
238int 235int
239md_pre_update() 236md_pre_update()
240{ 237{
241 238
242 if (get_ramsize() < 6) 239 if (get_ramsize() < 6)
243 set_swap(diskdev, NULL); 240 set_swap(diskdev, NULL);
244 return (1); 241 return (1);
245} 242}
246 243
247void 244void
248md_init() 245md_init()

cvs diff -r1.28 -r1.29 src/distrib/utils/sysinst/arch/news68k/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/news68k/Attic/md.c 2008/01/28 02:47:15 1.28
+++ src/distrib/utils/sysinst/arch/news68k/Attic/md.c 2008/10/07 09:58:15 1.29
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.28 2008/01/28 02:47:15 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.29 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -189,30 +189,26 @@ md_update(void) @@ -189,30 +189,26 @@ md_update(void)
189 md_post_newfs(); 189 md_post_newfs();
190 wrefresh(curscr); 190 wrefresh(curscr);
191 wmove(stdscr, 0, 0); 191 wmove(stdscr, 0, 0);
192 wclear(stdscr); 192 wclear(stdscr);
193 wrefresh(stdscr); 193 wrefresh(stdscr);
194 return 1; 194 return 1;
195} 195}
196 196
197void 197void
198md_cleanup_install(void) 198md_cleanup_install(void)
199{ 199{
200 200
201 enable_rc_conf(); 201 enable_rc_conf();
202 
203 run_program(0, "rm -f %s", target_expand("/sysinst")); 
204 run_program(0, "rm -f %s", target_expand("/.termcap")); 
205 run_program(0, "rm -f %s", target_expand("/.profile")); 
206} 202}
207 203
208int 204int
209md_pre_update(void) 205md_pre_update(void)
210{ 206{
211 207
212 return 1; 208 return 1;
213} 209}
214 210
215void 211void
216md_init(void) 212md_init(void)
217{ 213{
218} 214}

cvs diff -r1.16 -r1.17 src/distrib/utils/sysinst/arch/newsmips/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/newsmips/Attic/md.c 2008/01/28 02:47:15 1.16
+++ src/distrib/utils/sysinst/arch/newsmips/Attic/md.c 2008/10/07 09:58:15 1.17
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.16 2008/01/28 02:47:15 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.17 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -185,30 +185,26 @@ md_update() @@ -185,30 +185,26 @@ md_update()
185 md_post_newfs(); 185 md_post_newfs();
186 wrefresh(curscr); 186 wrefresh(curscr);
187 wmove(stdscr, 0, 0); 187 wmove(stdscr, 0, 0);
188 wclear(stdscr); 188 wclear(stdscr);
189 wrefresh(stdscr); 189 wrefresh(stdscr);
190 return 1; 190 return 1;
191} 191}
192 192
193void 193void
194md_cleanup_install() 194md_cleanup_install()
195{ 195{
196 196
197 enable_rc_conf(); 197 enable_rc_conf();
198 
199 run_program(0, "rm -f %s", target_expand("/sysinst")); 
200 run_program(0, "rm -f %s", target_expand("/.termcap")); 
201 run_program(0, "rm -f %s", target_expand("/.profile")); 
202} 198}
203 199
204int 200int
205md_pre_update() 201md_pre_update()
206{ 202{
207 return 1; 203 return 1;
208} 204}
209 205
210void 206void
211md_init() 207md_init()
212{ 208{
213} 209}
214 210

cvs diff -r1.3 -r1.4 src/distrib/utils/sysinst/arch/ofppc/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/ofppc/Attic/md.c 2008/01/28 02:47:15 1.3
+++ src/distrib/utils/sysinst/arch/ofppc/Attic/md.c 2008/10/07 09:58:15 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.3 2008/01/28 02:47:15 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.4 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -440,30 +440,26 @@ md_update(void) @@ -440,30 +440,26 @@ md_update(void)
440 md_post_newfs(); 440 md_post_newfs();
441 wrefresh(curscr); 441 wrefresh(curscr);
442 wmove(stdscr, 0, 0); 442 wmove(stdscr, 0, 0);
443 wclear(stdscr); 443 wclear(stdscr);
444 wrefresh(stdscr); 444 wrefresh(stdscr);
445 return 1; 445 return 1;
446} 446}
447 447
448void 448void
449md_cleanup_install(void) 449md_cleanup_install(void)
450{ 450{
451 451
452 enable_rc_conf(); 452 enable_rc_conf();
453 
454 run_program(0, "rm -f %s", target_expand("/sysinst")); 
455 run_program(0, "rm -f %s", target_expand("/.termcap")); 
456 run_program(0, "rm -f %s", target_expand("/.profile")); 
457} 453}
458 454
459int 455int
460md_pre_update(void) 456md_pre_update(void)
461{ 457{
462 struct mbr_partition *part; 458 struct mbr_partition *part;
463 mbr_info_t *ext; 459 mbr_info_t *ext;
464 int i; 460 int i;
465 461
466 read_mbr(diskdev, &mbr); 462 read_mbr(diskdev, &mbr);
467 /* do a sanity check of the partition table */ 463 /* do a sanity check of the partition table */
468 for (ext = &mbr; ext; ext = ext->extended) { 464 for (ext = &mbr; ext; ext = ext->extended) {
469 part = ext->mbr.mbr_parts; 465 part = ext->mbr.mbr_parts;

cvs diff -r1.21 -r1.22 src/distrib/utils/sysinst/arch/playstation2/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/playstation2/Attic/md.c 2008/01/28 02:47:16 1.21
+++ src/distrib/utils/sysinst/arch/playstation2/Attic/md.c 2008/10/07 09:58:15 1.22
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.21 2008/01/28 02:47:16 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.22 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -127,30 +127,26 @@ md_update() @@ -127,30 +127,26 @@ md_update()
127 wrefresh(curscr); 127 wrefresh(curscr);
128 wmove(stdscr, 0, 0); 128 wmove(stdscr, 0, 0);
129 wclear(stdscr); 129 wclear(stdscr);
130 wrefresh(stdscr); 130 wrefresh(stdscr);
131 131
132 return (1); 132 return (1);
133} 133}
134 134
135void 135void
136md_cleanup_install() 136md_cleanup_install()
137{ 137{
138 138
139 enable_rc_conf(); 139 enable_rc_conf();
140 
141 run_program(0, "rm -f %s", target_expand("/sysinst")); 
142 run_program(0, "rm -f %s", target_expand("/.termcap")); 
143 run_program(0, "rm -f %s", target_expand("/.profile")); 
144} 140}
145 141
146int 142int
147md_pre_update() 143md_pre_update()
148{ 144{
149 145
150 return (1); 146 return (1);
151} 147}
152 148
153void 149void
154md_init() 150md_init()
155{ 151{
156 /* Nothing to do */ 152 /* Nothing to do */

cvs diff -r1.60 -r1.61 src/distrib/utils/sysinst/arch/pmax/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/pmax/Attic/md.c 2008/01/28 02:47:16 1.60
+++ src/distrib/utils/sysinst/arch/pmax/Attic/md.c 2008/10/07 09:58:15 1.61
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.60 2008/01/28 02:47:16 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.61 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -192,30 +192,26 @@ md_update(void) @@ -192,30 +192,26 @@ md_update(void)
192 md_post_newfs(); 192 md_post_newfs();
193 wrefresh(curscr); 193 wrefresh(curscr);
194 wmove(stdscr, 0, 0); 194 wmove(stdscr, 0, 0);
195 wclear(stdscr); 195 wclear(stdscr);
196 wrefresh(stdscr); 196 wrefresh(stdscr);
197 return 1; 197 return 1;
198} 198}
199 199
200void 200void
201md_cleanup_install(void) 201md_cleanup_install(void)
202{ 202{
203 203
204 enable_rc_conf(); 204 enable_rc_conf();
205 
206 run_program(0, "rm -f %s", target_expand("/sysinst")); 
207 run_program(0, "rm -f %s", target_expand("/.termcap")); 
208 run_program(0, "rm -f %s", target_expand("/.profile")); 
209} 205}
210 206
211int 207int
212md_pre_update() 208md_pre_update()
213{ 209{
214 return 1; 210 return 1;
215} 211}
216 212
217void 213void
218md_init() 214md_init()
219{ 215{
220} 216}
221 217

cvs diff -r1.28 -r1.29 src/distrib/utils/sysinst/arch/prep/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/prep/Attic/md.c 2008/01/28 02:47:16 1.28
+++ src/distrib/utils/sysinst/arch/prep/Attic/md.c 2008/10/07 09:58:15 1.29
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.28 2008/01/28 02:47:16 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.29 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -206,30 +206,26 @@ md_update(void) @@ -206,30 +206,26 @@ md_update(void)
206 md_post_newfs(); 206 md_post_newfs();
207 wrefresh(curscr); 207 wrefresh(curscr);
208 wmove(stdscr, 0, 0); 208 wmove(stdscr, 0, 0);
209 wclear(stdscr); 209 wclear(stdscr);
210 wrefresh(stdscr); 210 wrefresh(stdscr);
211 return 1; 211 return 1;
212} 212}
213 213
214void 214void
215md_cleanup_install(void) 215md_cleanup_install(void)
216{ 216{
217 217
218 enable_rc_conf(); 218 enable_rc_conf();
219 
220 run_program(0, "rm -f %s", target_expand("/sysinst")); 
221 run_program(0, "rm -f %s", target_expand("/.termcap")); 
222 run_program(0, "rm -f %s", target_expand("/.profile")); 
223  219
224 run_program(0, "rm -f %s", target_expand("/.bootimage")); 220 run_program(0, "rm -f %s", target_expand("/.bootimage"));
225} 221}
226 222
227int 223int
228md_pre_update(void) 224md_pre_update(void)
229{ 225{
230 struct mbr_partition *part; 226 struct mbr_partition *part;
231 mbr_info_t *ext; 227 mbr_info_t *ext;
232 int i; 228 int i;
233 229
234 read_mbr(diskdev, &mbr); 230 read_mbr(diskdev, &mbr);
235 /* do a sanity check of the partition table */ 231 /* do a sanity check of the partition table */

cvs diff -r1.27 -r1.28 src/distrib/utils/sysinst/arch/sandpoint/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/sandpoint/Attic/md.c 2008/01/28 02:47:16 1.27
+++ src/distrib/utils/sysinst/arch/sandpoint/Attic/md.c 2008/10/07 09:58:15 1.28
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.27 2008/01/28 02:47:16 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.28 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -142,26 +142,27 @@ md_update(void) @@ -142,26 +142,27 @@ md_update(void)
142 wrefresh(stdscr); 142 wrefresh(stdscr);
143 return 1; 143 return 1;
144} 144}
145 145
146void 146void
147md_cleanup_install(void) 147md_cleanup_install(void)
148{ 148{
149 149
150 enable_rc_conf(); 150 enable_rc_conf();
151 151
152 run_program(0, "rm -f %s", target_expand("/sysinst")); 152 run_program(0, "rm -f %s", target_expand("/sysinst"));
153 run_program(0, "rm -f %s", target_expand("/.termcap")); 153 run_program(0, "rm -f %s", target_expand("/.termcap"));
154 run_program(0, "rm -f %s", target_expand("/.profile")); 154 run_program(0, "rm -f %s", target_expand("/.profile"));
 155 /* XXX - the above wipes /.profile from etc.tgz */
155} 156}
156 157
157int 158int
158md_pre_update(void) 159md_pre_update(void)
159{ 160{
160 return 1; 161 return 1;
161} 162}
162 163
163void 164void
164md_init(void) 165md_init(void)
165{ 166{
166} 167}
167 168

cvs diff -r1.23 -r1.24 src/distrib/utils/sysinst/arch/sgimips/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/sgimips/Attic/md.c 2008/01/28 02:47:16 1.23
+++ src/distrib/utils/sysinst/arch/sgimips/Attic/md.c 2008/10/07 09:58:15 1.24
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.23 2008/01/28 02:47:16 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.24 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Written by Philip A. Nelson for Piermont Information Systems Inc. 7 * Written by Philip A. Nelson for Piermont Information Systems Inc.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -168,30 +168,26 @@ md_update(void) @@ -168,30 +168,26 @@ md_update(void)
168 md_post_newfs(); 168 md_post_newfs();
169 wrefresh(curscr); 169 wrefresh(curscr);
170 wmove(stdscr, 0, 0); 170 wmove(stdscr, 0, 0);
171 wclear(stdscr); 171 wclear(stdscr);
172 wrefresh(stdscr); 172 wrefresh(stdscr);
173 return 1; 173 return 1;
174} 174}
175 175
176void 176void
177md_cleanup_install(void) 177md_cleanup_install(void)
178{ 178{
179 179
180 enable_rc_conf(); 180 enable_rc_conf();
181 
182 run_program(0, "rm -f %s", target_expand("/sysinst")); 
183 run_program(0, "rm -f %s", target_expand("/.termcap")); 
184 run_program(0, "rm -f %s", target_expand("/.profile")); 
185  181
186 if (strstr(instsys.version, "(GENERIC32_IP12)")) 182 if (strstr(instsys.version, "(GENERIC32_IP12)"))
187 run_program(0, "/usr/mdec/sgivol -f -w netbsd %s %s", 183 run_program(0, "/usr/mdec/sgivol -f -w netbsd %s %s",
188 target_expand("/netbsd.ecoff"), diskdev); 184 target_expand("/netbsd.ecoff"), diskdev);
189} 185}
190 186
191int 187int
192md_pre_update() 188md_pre_update()
193{ 189{
194 return 1; 190 return 1;
195} 191}
196 192
197void 193void

cvs diff -r1.22 -r1.23 src/distrib/utils/sysinst/arch/shark/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/shark/Attic/md.c 2008/01/28 02:47:16 1.22
+++ src/distrib/utils/sysinst/arch/shark/Attic/md.c 2008/10/07 09:58:15 1.23
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.22 2008/01/28 02:47:16 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.23 2008/10/07 09:58:15 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -187,29 +187,26 @@ md_update(void) @@ -187,29 +187,26 @@ md_update(void)
187void 187void
188md_cleanup_install(void) 188md_cleanup_install(void)
189{ 189{
190#ifndef DEBUG 190#ifndef DEBUG
191 enable_rc_conf(); 191 enable_rc_conf();
192 192
193 add_rc_conf("wscons=YES\n"); 193 add_rc_conf("wscons=YES\n");
194 194
195 /* Configure a single screen. */ 195 /* Configure a single screen. */
196 run_program(RUN_CHROOT, 196 run_program(RUN_CHROOT,
197 "sed -an -e '/^screen/s/^/#/;/^mux/s/^/#/;" 197 "sed -an -e '/^screen/s/^/#/;/^mux/s/^/#/;"
198 "H;$!d;g;w /etc/wscons.conf' /etc/wscons.conf"); 198 "H;$!d;g;w /etc/wscons.conf' /etc/wscons.conf");
199 199
200 run_program(0, "rm -f %s", target_expand("/sysinst")); 
201 run_program(0, "rm -f %s", target_expand("/.termcap")); 
202 run_program(0, "rm -f %s", target_expand("/.profile")); 
203#endif 200#endif
204} 201}
205 202
206int 203int
207md_pre_update(void) 204md_pre_update(void)
208{ 205{
209 return 1; 206 return 1;
210} 207}
211 208
212void 209void
213md_init(void) 210md_init(void)
214{ 211{
215} 212}

cvs diff -r1.46 -r1.47 src/distrib/utils/sysinst/arch/sparc/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/sparc/Attic/md.c 2008/01/28 02:47:17 1.46
+++ src/distrib/utils/sysinst/arch/sparc/Attic/md.c 2008/10/07 09:58:16 1.47
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.46 2008/01/28 02:47:17 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.47 2008/10/07 09:58:16 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -180,30 +180,26 @@ md_update(void) @@ -180,30 +180,26 @@ md_update(void)
180 md_post_newfs(); 180 md_post_newfs();
181 wrefresh(curscr); 181 wrefresh(curscr);
182 wmove(stdscr, 0, 0); 182 wmove(stdscr, 0, 0);
183 wclear(stdscr); 183 wclear(stdscr);
184 wrefresh(stdscr); 184 wrefresh(stdscr);
185 return 1; 185 return 1;
186} 186}
187 187
188void 188void
189md_cleanup_install(void) 189md_cleanup_install(void)
190{ 190{
191 191
192 enable_rc_conf(); 192 enable_rc_conf();
193 
194 run_program(0, "rm -f %s", target_expand("/sysinst")); 
195 run_program(0, "rm -f %s", target_expand("/.termcap")); 
196 run_program(0, "rm -f %s", target_expand("/.profile")); 
197} 193}
198 194
199int 195int
200md_pre_update() 196md_pre_update()
201{ 197{
202 return 1; 198 return 1;
203} 199}
204 200
205void 201void
206md_init() 202md_init()
207{ 203{
208} 204}
209 205

cvs diff -r1.22 -r1.23 src/distrib/utils/sysinst/arch/sparc64/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/sparc64/Attic/md.c 2008/01/28 02:47:17 1.22
+++ src/distrib/utils/sysinst/arch/sparc64/Attic/md.c 2008/10/07 09:58:16 1.23
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.22 2008/01/28 02:47:17 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.23 2008/10/07 09:58:16 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -178,30 +178,26 @@ md_update(void) @@ -178,30 +178,26 @@ md_update(void)
178 md_post_newfs(); 178 md_post_newfs();
179 wrefresh(curscr); 179 wrefresh(curscr);
180 wmove(stdscr, 0, 0); 180 wmove(stdscr, 0, 0);
181 wclear(stdscr); 181 wclear(stdscr);
182 wrefresh(stdscr); 182 wrefresh(stdscr);
183 return 1; 183 return 1;
184} 184}
185 185
186void 186void
187md_cleanup_install(void) 187md_cleanup_install(void)
188{ 188{
189 189
190 enable_rc_conf(); 190 enable_rc_conf();
191 
192 run_program(0, "rm -f %s", target_expand("/sysinst")); 
193 run_program(0, "rm -f %s", target_expand("/.termcap")); 
194 run_program(0, "rm -f %s", target_expand("/.profile")); 
195} 191}
196 192
197int 193int
198md_pre_update() 194md_pre_update()
199{ 195{
200 return 1; 196 return 1;
201} 197}
202 198
203void 199void
204md_init() 200md_init()
205{ 201{
206} 202}
207 203

cvs diff -r1.32 -r1.33 src/distrib/utils/sysinst/arch/vax/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/vax/Attic/md.c 2008/01/28 02:47:17 1.32
+++ src/distrib/utils/sysinst/arch/vax/Attic/md.c 2008/10/07 09:58:16 1.33
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.32 2008/01/28 02:47:17 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.33 2008/10/07 09:58:16 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -177,30 +177,26 @@ md_update(void) @@ -177,30 +177,26 @@ md_update(void)
177 md_post_newfs(); 177 md_post_newfs();
178 wrefresh(curscr); 178 wrefresh(curscr);
179 wmove(stdscr, 0, 0); 179 wmove(stdscr, 0, 0);
180 wclear(stdscr); 180 wclear(stdscr);
181 wrefresh(stdscr); 181 wrefresh(stdscr);
182 return 1; 182 return 1;
183} 183}
184 184
185void 185void
186md_cleanup_install(void) 186md_cleanup_install(void)
187{ 187{
188 188
189 enable_rc_conf(); 189 enable_rc_conf();
190 
191 run_program(0, "rm -f %s", target_expand("/sysinst")); 
192 run_program(0, "rm -f %s", target_expand("/.termcap")); 
193 run_program(0, "rm -f %s", target_expand("/.profile")); 
194} 190}
195 191
196int 192int
197md_pre_update() 193md_pre_update()
198{ 194{
199 return 1; 195 return 1;
200} 196}
201 197
202void 198void
203md_init() 199md_init()
204{ 200{
205} 201}
206 202

cvs diff -r1.35 -r1.36 src/distrib/utils/sysinst/arch/x68k/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/x68k/Attic/md.c 2008/01/28 02:47:17 1.35
+++ src/distrib/utils/sysinst/arch/x68k/Attic/md.c 2008/10/07 09:58:16 1.36
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.35 2008/01/28 02:47:17 rumble Exp $ */ 1/* $NetBSD: md.c,v 1.36 2008/10/07 09:58:16 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. Modified by Minoura Makoto for x68k. 8 * Systems Inc. Modified by Minoura Makoto for x68k.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -311,29 +311,26 @@ md_update(void) @@ -311,29 +311,26 @@ md_update(void)
311 wmove(stdscr, 0, 0); 311 wmove(stdscr, 0, 0);
312 wclear(stdscr); 312 wclear(stdscr);
313 wrefresh(stdscr); 313 wrefresh(stdscr);
314 return 1; 314 return 1;
315} 315}
316 316
317void 317void
318md_cleanup_install(void) 318md_cleanup_install(void)
319{ 319{
320  320
321#ifdef notyet /* sed is too large for ramdisk */ 321#ifdef notyet /* sed is too large for ramdisk */
322 enable_rc_conf(); 322 enable_rc_conf();
323#endif 323#endif
324 run_program(0, "rm -f %s", target_expand("/sysinst")); 
325 run_program(0, "rm -f %s", target_expand("/.termcap")); 
326 run_program(0, "rm -f %s", target_expand("/.profile")); 
327} 324}
328 325
329int 326int
330md_pre_update() 327md_pre_update()
331{ 328{
332 if (get_ramsize() < 6) 329 if (get_ramsize() < 6)
333 set_swap(diskdev, NULL); 330 set_swap(diskdev, NULL);
334 return 1; 331 return 1;
335} 332}
336 333
337void 334void
338md_init() 335md_init()
339{ 336{

cvs diff -r1.2 -r1.3 src/distrib/utils/sysinst/arch/zaurus/Attic/md.c (expand / switch to unified diff)

--- src/distrib/utils/sysinst/arch/zaurus/Attic/md.c 2008/04/10 15:45:29 1.2
+++ src/distrib/utils/sysinst/arch/zaurus/Attic/md.c 2008/10/07 09:58:16 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: md.c,v 1.2 2008/04/10 15:45:29 nonaka Exp $ */ 1/* $NetBSD: md.c,v 1.3 2008/10/07 09:58:16 abs Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Piermont Information Systems Inc. 4 * Copyright 1997 Piermont Information Systems Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Based on code written by Philip A. Nelson for Piermont Information 7 * Based on code written by Philip A. Nelson for Piermont Information
8 * Systems Inc. 8 * Systems Inc.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -134,30 +134,26 @@ md_update(void) @@ -134,30 +134,26 @@ md_update(void)
134 md_post_newfs(); 134 md_post_newfs();
135 wrefresh(curscr); 135 wrefresh(curscr);
136 wmove(stdscr, 0, 0); 136 wmove(stdscr, 0, 0);
137 wclear(stdscr); 137 wclear(stdscr);
138 wrefresh(stdscr); 138 wrefresh(stdscr);
139 return 1; 139 return 1;
140} 140}
141 141
142void 142void
143md_cleanup_install(void) 143md_cleanup_install(void)
144{ 144{
145 145
146 enable_rc_conf(); 146 enable_rc_conf();
147 
148 run_program(0, "rm -f %s", target_expand("/sysinst")); 
149 run_program(0, "rm -f %s", target_expand("/.termcap")); 
150 run_program(0, "rm -f %s", target_expand("/.profile")); 
151} 147}
152 148
153int 149int
154md_pre_update(void) 150md_pre_update(void)
155{ 151{
156 152
157 return 1; 153 return 1;
158} 154}
159 155
160void 156void
161md_init(void) 157md_init(void)
162{ 158{
163 159