]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/shutdown.cgi
HinzugefĆ¼gt:
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / shutdown.cgi
index 6305ca9c6f985a28344eab43ad9c38f722eb59df..cd0ace7d3fd1243c4ae0894df45a919c2262151c 100644 (file)
@@ -29,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;
@@ -53,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) {
@@ -86,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);
 
@@ -186,9 +186,7 @@ END
     <td width='30%' align='center'>
         <input type='submit' name='ACTION' value='$Lang::tr{'save'}' />
     </td>
-    <td width='10%' align='right'>
-        <a href='${General::adminmanualurl}/system.html#shutdown' target='_blank'>
-        <img src='/images/web-support.png' title='$Lang::tr{'online help en'}' /></a></td>
+    <td width='10%' align='right'>&nbsp;
 </tr>
 </table>
 
@@ -202,10 +200,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);