adds screenit and till to /bin

This commit is contained in:
Martinez 2017-04-10 11:10:34 +02:00
parent 5a2cc33726
commit bd3494d184
2 changed files with 34 additions and 0 deletions

6
bin/screenit Executable file
View file

@ -0,0 +1,6 @@
#! /bin/bash
screen -wipe
sudo echo "Rooted."
sleep .5
screen -c /etc/screenrc.over

28
bin/till Executable file
View file

@ -0,0 +1,28 @@
#! /usr/bin/env python3
# encoding: utf-8
import os
import sys
import time
locks = set(sys.argv[1:])
locks_to_remove = set()
print(">>> Active locks: %s" %(", ".join(locks)))
while locks:
for lock in locks:
if not os.path.exists(lock):
print("--- Releasing %s" %(lock))
locks_to_remove.add(lock)
for lock in locks_to_remove:
locks.remove(lock)
locks_to_remove.clear()
if locks:
time.sleep(5)
print("<<< All locks have been released.")