From: gord-fig Date: Mon, 24 Sep 2001 17:39:22 +0000 (+0000) Subject: Minor interface cleanups. X-Git-Tag: 0.4.2~702 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f43422c0b709939770890c26cd1388b5259129a7;p=fs%2Flustre-release.git Minor interface cleanups. --- diff --git a/lustre/obdclass/obdcontrol b/lustre/obdclass/obdcontrol index 8747b2e..7cb9048 100755 --- a/lustre/obdclass/obdcontrol +++ b/lustre/obdclass/obdcontrol @@ -342,6 +342,8 @@ sub execute_line { my @cmdline = split(' ', $line); my $word = shift @cmdline; + return 0 unless ($word); + my $cmd; if ( $file ) { $cmd = $word; @@ -353,10 +355,6 @@ sub execute_line { return (-1); } - if ($cmd eq "help" || $cmd eq "exit" || $cmd eq "quit") { - return (&{$commands{$cmd}->{func}}(@cmdline)); - } - # Call the function. return (&{$commands{$cmd}->{func}}(@cmdline)); } @@ -389,7 +387,7 @@ sub Device { print "Cannot open $device. Did you insert the obdclass module ?\n"; return -1; } - print "Openend device $device\n"; + print "Opened device $device\n"; $opendevfds{$device} = *NEW_OBD; $::dev_obd = *NEW_OBD; }