87 lines
3.5 KiB
Mason
87 lines
3.5 KiB
Mason
/* $NetBSD: menus.mi,v 1.5 2003/06/11 09:03:32 dsl Exp $ */
|
|
|
|
/*-
|
|
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This code is derived from software contributed to The NetBSD Foundation
|
|
* by David Laight.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
* must display the following acknowledgement:
|
|
* This product includes software developed by the NetBSD
|
|
* Foundation, Inc. and its contributors.
|
|
* 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
* contributors may be used to endorse or promote products derived
|
|
* from this software without specific prior written permission.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
/*
|
|
* Menu system definitions -- machine and language independent
|
|
*
|
|
* This file must be first in the sed command line.
|
|
*
|
|
*/
|
|
|
|
{
|
|
#include <stdio.h>
|
|
#include <time.h>
|
|
#include <curses.h>
|
|
#include "defs.h"
|
|
#include "md.h"
|
|
#include "msg_defs.h"
|
|
#include "menu_defs.h"
|
|
|
|
}
|
|
|
|
default y=12, no exit, scrollable;
|
|
|
|
allow dynamic menus;
|
|
allow dynamic messages;
|
|
|
|
|
|
menu selfskind, title MSG_Select_the_type, y=15;
|
|
option "4.2BSD", exit, action
|
|
{ ((partinfo *)arg)->pi_fstype = FS_BSDFFS; set_bsize(arg, 8192); };
|
|
option "unused", exit, action
|
|
{ ((partinfo *)arg)->pi_fstype = FS_UNUSED; set_bsize(arg, 0); };
|
|
option "swap", exit, action
|
|
{ ((partinfo *)arg)->pi_fstype = FS_SWAP; set_bsize(arg, 0); };
|
|
option "msdos", exit, action
|
|
{ ((partinfo *)arg)->pi_fstype = FS_MSDOS; set_bsize(arg, 0); };
|
|
option "4.4LFS", exit, action
|
|
{ ((partinfo *)arg)->pi_fstype = FS_BSDLFS; set_bsize(arg, 8192); };
|
|
|
|
menu selbsize, title MSG_Select_file_system_block_size, y = 15;
|
|
option "8192", exit, action { set_bsize(arg, 8192); };
|
|
option "4096", exit, action { set_bsize(arg, 4096); };
|
|
option "16384", exit, action { set_bsize(arg, 16384); };
|
|
option "32768", exit, action { set_bsize(arg, 32768); };
|
|
|
|
menu selfsize, title MSG_Select_number_of_fragments_per_block, y = 15;
|
|
option MSG_f8_per_block, exit, action { set_fsize(arg, 8); };
|
|
option MSG_f4_per_block, exit, action { set_fsize(arg, 4); };
|
|
option MSG_f2_per_block, exit, action { set_fsize(arg, 2); };
|
|
option MSG_f1_per_block, exit, action { set_fsize(arg, 1); };
|
|
|