Linux support
"Stephen Schaefer" <[email protected]>
| Newsgroups | gmane.comp.sysutils.isconf.devel |
|---|---|
| Message-ID | <[email protected]> |
The default result of the sum command under linux is different than
Solaris an HP-UX. To compensate, I did this:
diff -c -r1.3 Isconf.pm
*** lib/perl5/Isconf.pm 11 Feb 2003 17:22:49 -0000 1.3
--- lib/perl5/Isconf.pm 18 Feb 2003 13:23:15 -0000
***************
*** 255,261 ****
error("File $file does not have a sum set."), return;
}
! $nsum = qx(cat $file | grep -v '^#' | sum | awk '{print \$1'});
chomp $nsum;
unless ($nsum)
{
--- 256,263 ----
error("File $file does not have a sum set."), return;
}
! $sysv_flag = (defined $ENV{'IS_OS'} && $ENV{'IS_OS'} eq 'linux')
? " -s
" : "";
! $nsum = qx(cat $file | grep -v '^#' | sum $sysv_flag | awk
'{print \$1'}
);
chomp $nsum;
unless ($nsum)
{
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf