#
# (c) The SmoothWall Team
#
-# $Id: shutdown.cgi,v 1.5.2.10 2006/01/02 16:21:00 eoberlander Exp $
-#
use strict;
if ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown'}) {
$death = 1;
- &General::log($Lang::tr{'shutting down ipcop'});
- #system '/usr/local/bin/ipcopdeath';
- system '/usr/local/bin/ipcopreboot down';
+ &General::log($Lang::tr{'shutting down ipfire'});
+ #system '/usr/local/bin/ipfiredeath';
+ system '/usr/local/bin/ipfirereboot down';
} elsif ($cgiparams{'ACTION'} eq $Lang::tr{'reboot'}) {
$rebirth = 1;
- &General::log($Lang::tr{'rebooting ipcop'});
- #system '/usr/local/bin/ipcoprebirth';
- system '/usr/local/bin/ipcopreboot boot';
+ &General::log($Lang::tr{'rebooting ipfire'});
+ #system '/usr/local/bin/ipfirerebirth';
+ system '/usr/local/bin/ipfirereboot boot';
} elsif ($cgiparams{'ACTION'} eq $Lang::tr{'save'}) {
my $days='';
my $n = 1;
($hour,$min) = split (':', $cgiparams{'TIME'});
$days = "'*'" if ($days eq '1,2,3,4,5,6,7');
my $mode = ($cgiparams{'MODE'} eq 'halt') ? '-h' : '-r';
- system "/usr/local/bin/ipcopreboot cron+ $min $hour $days $mode"; #reboot checks values of $hour & $min
+ system "/usr/local/bin/ipfirereboot cron+ $min $hour $days $mode"; #reboot checks values of $hour & $min
} else {
&General::log("Remove scheduled reboot");
- system '/usr/local/bin/ipcopreboot cron-';
+ system '/usr/local/bin/ipfirereboot cron-';
}
}
if ($death == 0 && $rebirth == 0) {
#decode the shutdown line stored in crontab
#get the line
- open(FILE, "/usr/local/bin/ipcopreboot cron?|");
+ open(FILE, "/usr/local/bin/ipfirereboot cron?|");
my $schedule = <FILE>;
close (FILE);
my $refresh = "<meta http-equiv='refresh' content='5; URL=/cgi-bin/index.cgi' />";
if ($death) {
$title = $Lang::tr{'shutting down'};
- $message = $Lang::tr{'ipcop has now shutdown'};
+ $message = $Lang::tr{'ipfire has now shutdown'};
} else {
$title = $Lang::tr{'rebooting'};
- $message = $Lang::tr{'ipcop has now rebooted'};
+ $message = $Lang::tr{'ipfire has now rebooted'};
}
&Header::openpage($title, 0, $refresh);
<div align='center'>
<table width='100%' bgcolor='#ffffff'>
<tr><td align='center'>
-<br /><br /><img src='/ipcop_big.gif' /><br /><br /><br />
+<br /><br /><img src='/ipfire_big.gif' /><br /><br /><br />
</td></tr>
</table>
<br />