CC-2758: Make airtime-install script Debian/Ubuntu compatible
-uninstall script added
This commit is contained in:
parent
153e0df409
commit
56edfe4e68
15 changed files with 359 additions and 64 deletions
|
@ -0,0 +1,14 @@
|
|||
from subprocess import Popen
|
||||
import os
|
||||
import sys
|
||||
|
||||
if os.geteuid() != 0:
|
||||
print "Please run this as root."
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
print "Waiting for media-monitor processes to stop..."
|
||||
p = Popen("/etc/init.d/airtime-media-monitor stop", shell=True)
|
||||
sts = os.waitpid(p.pid, 0)[1]
|
||||
except Exception, e:
|
||||
print e
|
Loading…
Add table
Add a link
Reference in a new issue