added esync.pl

This commit is contained in:
Josh Holtrop committed 2010-09-12 00:20:54 -04:00
1 parent aa08639e04
commit b44cbaf9b2
1 file changed
+12
Executable
+12
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