mirror of
https://github.com/webmin/webmin.git
synced 2025-08-19 01:15:14 +00:00
15 lines
366 B
Perl
Executable File
15 lines
366 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# Move a title up
|
|
|
|
require './grub-lib.pl';
|
|
&ReadParse();
|
|
&lock_file($config{'menu_file'});
|
|
$conf = &get_menu_config();
|
|
@t = &find("title", $conf);
|
|
&swap_directives($t[$in{'idx'}], $t[$in{'idx-1'}]);
|
|
&flush_file_lines($config{'menu_file'});
|
|
&unlock_file($config{'menu_file'});
|
|
&webmin_log("up", "title", undef, $t[$in{'idx'}]);
|
|
&redirect("");
|
|
|