added esync.pl

This commit is contained in:
Josh Holtrop 2010-09-12 00:20:54 -04:00
parent aa08639e04
commit b44cbaf9b2

12
esync.pl Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/perl -w
use strict;
my $pso = `ps -efww | grep emerge | grep -v grep`;
if ($pso =~ /^\s*$/)
{
system("emerge --sync");
exit (0); # successful completion
}
exit (1); # emerge already running