]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/cgi-bin/shutdown.cgi
Großes Update:
[ipfire-2.x.git] / html / cgi-bin / shutdown.cgi
index cd50dd831ac09c1f5bb03d88241fefd7caec981b..4ccf805ae0b9766d161ac5726dfa46346c95c785 100644 (file)
@@ -6,8 +6,6 @@
 #
 # (c) The SmoothWall Team
 #
-# $Id: shutdown.cgi,v 1.5.2.10 2006/01/02 16:21:00 eoberlander Exp $
-#
 
 use strict;
 
@@ -31,14 +29,14 @@ $cgiparams{'ACTION'} = '';
 
 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;
@@ -55,10 +53,10 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'shutdown'}) {
            ($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) {
@@ -88,7 +86,7 @@ END
 
        #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);
 
@@ -204,10 +202,10 @@ END
        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);
 
@@ -216,7 +214,7 @@ END
 <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 />