mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
22 lines
486 B
Perl
Executable File
22 lines
486 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# save_dev.cgi
|
|
# Save global device options
|
|
|
|
require './burner-lib.pl';
|
|
$access{'global'} || &error($text{'dev_ecannot'});
|
|
&ReadParse();
|
|
&error_setup($text{'dev_err'});
|
|
|
|
$config{'dev'} = $in{'dev'};
|
|
if ($in{'speed'}) {
|
|
$config{'speed'} = $in{'speed'};
|
|
}
|
|
else {
|
|
$in{'other'} =~ /^\d+$/ || &error($text{'dev_eother'});
|
|
$config{'speed'} = $in{'other'};
|
|
}
|
|
$config{'extra'} = $in{'extra'};
|
|
&write_file("$module_config_directory/config", \%config);
|
|
&redirect("");
|
|
|