summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2019-01-11 04:22:22 +0000
committerMike Crute <mike@crute.us>2019-01-11 04:22:22 +0000
commitc65de179509081e5010e86212f15ec34d238f74b (patch)
tree7d17389efdde123c9d5755b52d30a7bdbb6c8ed3
parenteff1e39f2efc8d6c3b9d336d75d95694861fee57 (diff)
downloadmfi_homekit-c65de179509081e5010e86212f15ec34d238f74b.tar.bz2
mfi_homekit-c65de179509081e5010e86212f15ec34d238f74b.tar.xz
mfi_homekit-c65de179509081e5010e86212f15ec34d238f74b.zip
Add cleanup process script
-rw-r--r--cleanup_processes.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/cleanup_processes.sh b/cleanup_processes.sh
new file mode 100644
index 0000000..144a01f
--- /dev/null
+++ b/cleanup_processes.sh
@@ -0,0 +1,11 @@
1#!/bin/sh
2
3sed -i -e '/ubnt-websockets/s/^/#/' -e '/telnetd/s/^/#/' -e '/mca[-d]/s/^/#/' -e '/lighttpd/s/^/#/' /etc/inittab
4kill -HUP 1
5pkill -9 ubnt-websockets
6pkill -9 lighttpd
7pkill upnpd
8pkill telnetd
9pkill mca-monitor
10pkill mcad
11pkill avahi-daemon