X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/04040cd098c4329f0053599394f0c519ab3df3ba..5e257ef3d52a0bbb3de3179f83e0c20d841a823c:/rsbs2.pl?ds=sidebyside diff --git a/rsbs2.pl b/rsbs2.pl index 69272ca..76f745b 100755 --- 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,7 +492,8 @@ sub status { sub spawn_gui { my $base = shift; - open(APPLET,"|appletviewer -J-Djava.security.policy=applet.policy /dev/stdin"); + $ENV{'AWT_TOOLKIT'} = 'MToolkit'; + open(APPLET,"|appletviewer -J-Djava.security.policy=applet.policy -J-Djava.net.preferIPv4Stack=true /dev/stdin"); print APPLET 'RSB S2 User Interface'; print APPLET ''; print APPLET ''; @@ -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"});