]> cvs.zerfleddert.de Git - rsbs2/blobdiff - rsbs2.pl
supermicro-kvm: handle redirects to https
[rsbs2] / rsbs2.pl
index 97593a87c10c19b325ebaf8cbcdfea42a1cfd104..76f745b52e3c471aa97f023d2c62b3612e7c7c9d 100755 (executable)
--- a/rsbs2.pl
+++ b/rsbs2.pl
@@ -427,7 +427,7 @@ sub show_sensors {
                print $sensor->{NAME}.": ".$sensor->{VAL}.$sensor->{UNITS};
 
                my @info = ();
-               foreach my $field qw(MIN MAX LOW_NON_CRITICAL UPPER_NON_CRITICAL LOW_CRITICAL UPPER_CRITICAL) {
+               foreach my $field (qw(MIN MAX LOW_NON_CRITICAL UPPER_NON_CRITICAL LOW_CRITICAL UPPER_CRITICAL)) {
                        if ($sensor->{$field} ne '') {
                                push @info, "${field}: ".$sensor->{$field}.$sensor->{UNITS};
                        }
@@ -492,6 +492,7 @@ sub status {
 
 sub spawn_gui {
        my $base = shift;
+       $ENV{'AWT_TOOLKIT'} = 'MToolkit';
        open(APPLET,"|appletviewer -J-Djava.security.policy=applet.policy -J-Djava.net.preferIPv4Stack=true /dev/stdin");
        print APPLET '<HTML><HEAD><TITLE>RSB S2 User Interface</TITLE></HEAD>';
        print APPLET '<BODY>';
@@ -719,6 +720,7 @@ if (defined($ssl) && (lc($ssl) eq 'yes')) {
 
 if ($gui) {
        spawn_gui($url);
+       exit 0;
 }
 
 login(${$Config{$hostalias}}{"user"}, ${$Config{$hostalias}}{"pass"});
Impressum, Datenschutz