ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/plugins/perl/i-scream_disk.pl
(Generate patch)

Comparing projects/cms/source/host/ihost-perl/plugins/perl/i-scream_disk.pl (file contents):
Revision 1.3 by tdb, Mon Dec 3 15:14:11 2001 UTC vs.
Revision 1.4 by tdb, Tue Dec 18 04:07:17 2001 UTC

# Line 19 | Line 19 | use strict;
19   my($exclude_list) = "^/nfs/;^/cdrom/";
20   my(@exclude_array) = split(';', $exclude_list);
21  
22 < # Have to hope this will work really.
23 < my($ostype) = `uname -s`; chomp($ostype);
22 > # Get the OS type from the args, or try towork it out
23 > my($ostype) = $ARGV[0];
24 > $ostype = `uname -s` if not defined $ostype;
25 > chomp($ostype);
26  
27   # Decide which paths we should use.
28   my($dfbin);
# Line 44 | Line 46 | else {
46   }
47  
48   # Run the following components: -
47 &print_ident();
49   &include_disk();
50  
51   # End the program normally.
# Line 52 | Line 53 | exit(0);
53  
54  
55  
55
56 # prints out an identifier for this version of the script
57 # this could be used in checks further downstream
58 sub print_ident() {
59    print 'packet.plugins.ident.i-scream_disk i-scream_disk.pl $Revision$';
60    print "\n";
61 }
56  
57   # sub to print pairs of data, separated by a single space character.
58   # If the second argument is undefined, then the pair is still printed,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines