acpid.pl: script that triggers pm-hibernate via consolekit stuff when battery charge drops lower than 10%
This commit is contained in:
@@ -27,13 +27,13 @@ sub zlist(@){
|
||||
my $item;
|
||||
|
||||
foreach $item (@list) {
|
||||
printf ("zipping: %s to %s.zip", $item, $item);
|
||||
zip [$item] => "$item.zip", -Level => Z_BEST_COMPRESSION, Minimal => 1, TextFlag => 0, BinModeIn => 1, AutoClose => 1, CanonicalName => 1;
|
||||
|
||||
# printf ("zipping: %s to %s.zip", $item, $item);
|
||||
zip [$item] => "$item.zip", -Level => Z_BEST_COMPRESSION, Minimal => 1, TextFlag => 1, BinModeIn => 1, AutoClose => 1, CanonicalName => 1;
|
||||
|
||||
if(length($ZipError) > 0){
|
||||
printf ("Warning: unable to zip %s - %s\n", $item, $ZipError);
|
||||
}else{
|
||||
printf (" and deleting source file\n");
|
||||
# printf (" and deleting source file\n");
|
||||
unlink($item);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user