adds screenit and till to /bin
This commit is contained in:
parent
5a2cc33726
commit
bd3494d184
2 changed files with 34 additions and 0 deletions
6
bin/screenit
Executable file
6
bin/screenit
Executable file
|
@ -0,0 +1,6 @@
|
|||
#! /bin/bash
|
||||
|
||||
screen -wipe
|
||||
sudo echo "Rooted."
|
||||
sleep .5
|
||||
screen -c /etc/screenrc.over
|
28
bin/till
Executable file
28
bin/till
Executable 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.")
|
Loading…
Add table
Add a link
Reference in a new issue