mirror of
https://github.com/webmin/webmin.git
synced 2026-02-04 14:42:15 +00:00
15 lines
370 B
Perl
Executable File
15 lines
370 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# Move a title down
|
|
|
|
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("down", "title", undef, $t[$in{'idx'}]);
|
|
&redirect("");
|
|
|