#!/usr/local/bin/perl # edit_other.cgi # Edit or create a boot partition require './lilo-lib.pl'; &foreign_require("fdisk", "fdisk-lib.pl"); &ReadParse(); if ($in{'new'}) { &ui_print_header(undef, $text{'other_title1'}, ""); $members = [ ]; } else { &ui_print_header(undef, $text{'other_title2'}, ""); $conf = &get_lilo_conf(); $other = $conf->[$in{'idx'}]; $members = $other->{'members'}; } print "
\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "
$text{'other_details'}
\n"; print "\n"; printf "\n", &find_value("label", $members); print "\n"; $table = &find_value("table", $members); print "\n"; $password = &find_value("password", $members); print "\n"; print "
$text{'other_name'}$text{'other_part'} \n"; print &foreign_call("fdisk", "partition_select", "other", $other->{'value'}, 0); print "
$text{'other_pass'} \n"; printf " $text{'no'}\n", $table ? "" : "checked"; printf " $text{'other_yes'}\n", $table ? "checked" : ""; print &foreign_call("fdisk", "partition_select", "table", $table, 1); print "
$text{'other_password'} \n"; printf " $text{'other_none'}\n", $password ? "" : "checked"; printf "\n", $password ? "checked" : ""; print "
\n"; print "\n"; print "\n"; if (!$in{'new'}) { print "\n"; } print "
", "
\n"; &ui_print_footer("", $text{'index_return'});