#!/usr/local/bin/perl require "./inittab-lib.pl"; &ReadParse(); &ui_print_header(undef, &text( 'edit_inittab_title', $in{ 'id' } ), "", "index", 1, 1, undef ); print( "

", "", "", "
", $text{ 'edit_inittab_details' }, "
" ); @inittab = &parse_inittab(); ($init) = grep { $_->{'id'} eq $in{'id'} } @inittab; print( "", "", "", "\n"); print "\n"; printf "\n", $init->{'comment'} ? "checked" : "", $text{'no'}; print ("\n"; $init->{'action'} = "kbdrequest" if ($init->{'action'} eq "kbrequest"); print("", "", "", "", "\n", "", "" ); print( "
", &hlink( $text{ 'inittab_id' }, "id" ), "", &p_entry( "id", $init->{'id'}, $config{ 'inittab_size' } ), "
",&hlink($text{ 'inittab_active' },"active")," %s\n", $init->{'comment'} ? "" : "checked", $text{'yes'}; printf " %s
", &hlink( $text{ 'inittab_runlevels' }, "runlevels" ), "" ); foreach $checkbox ( 0..6, "a", "b", "c" ) { local $runlevels; print( "{'levels'}}) { print( " checked" ) if( $runlevel eq $checkbox ); } print( ">", $checkbox, " " ); } print "
", &hlink( $text{ 'inittab_action' }, "action" ), "", &p_select_wdl( "action", $init->{'action'}, ( "respawn", $text{ 'inittab_respawn' }, "wait", $text{ 'inittab_wait' }, "once", $text{ 'inittab_once' }, "wait", $text{ 'inittab_wait' }, "ondemand", $text{ 'inittab_ondemand' }, "initdefault", $text{ 'inittab_initdefault' }, "sysinit", $text{ 'inittab_sysinit' }, "powerwait", $text{ 'inittab_powerwait' }, "powerfail", $text{ 'inittab_powerfail' }, "powerokwait", $text{ 'inittab_powerokwait' }, "powerfailnow", $text{ 'inittab_powerfailnow' }, "ctrlaltdel", $text{ 'inittab_ctrlaltdel' }, "kbdrequest", $text{ 'inittab_kbdrequest' }, "bootwait", $text{'inittab_bootwait'}, "boot", $text{'inittab_boot'}, "off", $text{'inittab_off'} ) ), "
", &hlink( $text{ 'inittab_process' }, "process" ), "", &p_entry( "process", $init->{'process'}, 50 ), "
", "", "", "", "", "", "
", &p_button( "button", $text{ 'save' } ), "", &p_button( "button", $text{ 'edit_inittab_del' } ), "

" ); &ui_print_footer( "", $text{ 'inittab_return' } );