Sat, 18 Apr 2009 14:16:26 +0200
Correct substitutions and missing constructs throughout packaging.
Correct shtool(1) substitutions throughout, mostly embedded single
quotes and matching commas or semicolons. Install config files of
the form <plugin-name>_config.php for all unhandled plugins. Correct
superflous empty line in RPM files processing. Include squirrel_logger
config.php in config file attribute list. Remove unconfigurable captcha
backends from config file attribute list.
1 #!@l_prefix@/bin/perl
2 ##
3 ## uptime.pl: provide formatted uptime(1) information
4 ##
6 $null = 0;
7 $uptime = `uptime`;
8 $hostname = `hostname`;
10 $uptime =~ /up (.*?) day/;
11 $up = int($1);
13 # According to http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html
14 # 'the external command must return 4 lines of output.'
15 print "$up\n";
16 print "$up\n";
17 print "$null\n";
18 print "$null\n";