#!/usr/local/bin/perl # edit_global.cgi # Display options that apply to all sections require './lilo-lib.pl'; &foreign_require("fdisk", "fdisk-lib.pl"); &ui_print_header(undef, $text{'global_title'}, ""); $conf = &get_lilo_conf(); print "
\n"; print "\n"; print "\n"; print "
$text{'global_desc'}
\n"; $boot = &find_value("boot", $conf); print "\n"; $default = &find_value("default", $conf); print "\n"; $prompt = &find("prompt", $conf); print "\n", $prompt ? "" : "checked"; $timeout = &find_value("timeout", $conf); print "\n", $timeout ? $timeout / 10.0 : ""; $lock = &find("lock", $conf); print "\n", $lock ? "" : "checked"; $delay = &find_value("delay", $conf); print "\n", $delay ? $delay / 10.0 : ""; $compact = &find("compact", $conf); print "\n", $compact ? "" : "checked"; $optional = &find("optional", $conf); print "\n", $optional ? "" : "checked"; $password = &find_value("password", $conf); print "\n"; $restricted = &find("restricted", $conf); printf "\n", $restricted ? "" : "checked", $text{'global_any'}; if ($lilo_version >= 21.3) { $lba = &find("lba32", $conf); print "\n", $lba ? "" : "checked"; } print "
$text{'global_boot'} \n"; printf " $text{'global_root'}\n", $boot ? "" : "checked"; printf "\n", $boot ? "checked" : ""; print &foreign_call("fdisk", "partition_select", "boot", $boot, 2); print "
$text{'global_default'} \n"; printf " $text{'global_first'}\n", $default ? "" : "checked"; printf "\n", $default ? "checked" : ""; print "
$text{'global_prompt'} \n"; printf " $text{'yes'}\n", $prompt ? "checked" : ""; printf " $text{'no'}$text{'global_timeout'} \n"; printf " %s\n", $timeout ? "" : "checked", $text{'global_forever'}; printf "\n", $timeout ? "checked" : ""; printf " $text{'global_secs'}
$text{'global_lock'} \n"; printf " $text{'yes'}\n", $lock ? "checked" : ""; printf " $text{'no'}$text{'global_delay'} \n"; printf " $text{'global_imm'}\n", $delay ? "" : "checked"; printf "\n", $delay ? "checked" : ""; printf " $text{'global_secs'}
$text{'global_compact'} \n"; printf " $text{'yes'}\n", $compact ? "checked" : ""; printf " $text{'no'}$text{'global_optional'} \n"; printf " $text{'yes'}\n", $optional ? "checked" : ""; printf " $text{'no'}
$text{'global_password'} \n"; printf " $text{'global_none'}\n", $password ? "" : "checked"; printf "\n", $password ? "checked" : ""; print "
$text{'global_restricted'} \n"; printf " %s\n", $restricted ? "checked" : "", $text{'global_extra'}; printf " %s
$text{'global_lba'} \n"; printf " $text{'yes'}\n", $lba ? "checked" : ""; printf " $text{'no'}

\n"; print "
\n"; &ui_print_footer("", $text{'index_return'});