mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
21 lines
388 B
Perl
Executable File
21 lines
388 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# bootup.cgi
|
|
# Enable or disable ADSL startup at boot time
|
|
|
|
require './adsl-client-lib.pl';
|
|
&foreign_require("init", "init-lib.pl");
|
|
&ReadParse();
|
|
|
|
if ($in{'boot'}) {
|
|
# Enable starting at boot
|
|
&init::enable_at_boot("adsl");
|
|
&webmin_log("bootup");
|
|
}
|
|
else {
|
|
# Disable starting at boot
|
|
&init::disable_at_boot("adsl");
|
|
&webmin_log("bootdown");
|
|
}
|
|
&redirect("");
|
|
|