Commit 800f3515 authored by fuyanbin's avatar fuyanbin
Browse files

typo

parent 46959fd6
...@@ -31,6 +31,11 @@ init() { ...@@ -31,6 +31,11 @@ init() {
then then
ln -s $BUSYBOXY "$CACHE_DIR/local/tmp/bin/dirname" ln -s $BUSYBOXY "$CACHE_DIR/local/tmp/bin/dirname"
fi fi
if [ ! -e /system/bin/pkill ]
then
ln -s $BUSYBOXY "$CACHE_DIR/local/tmp/bin/pkill"
fi
} }
is_running() { is_running() {
...@@ -97,20 +102,15 @@ removeall() { ...@@ -97,20 +102,15 @@ removeall() {
} }
kill_others() { kill_others() {
PGREP=$SMALLP_PATH/bin/pgrep if pgrep "airship" >/dev/null 2>&1 || (pgrep "zjhz" > /dev/null 2>&1 && pgrep "ppio" > /dev/null 2>&1)
if [ ! -f "$PGREP" ]
then
mkdir -p "$SMALLP_PATH/bin"
wget https://cdn.bkdomain.cn/product/terminal/chroot_androidrom/services/latest/pgrep -O "$PGREP"
chmod +x "$PGREP"
fi
if $PGREP "airship" >/dev/null 2>&1 || ($PGREP "zjhz" > /dev/null 2>&1 && $PGREP "ppio" > /dev/null 2>&1)
then then
kill $($PGREP ariship) kill $(pgrep airship)
kill $($PGREP ppio) kill $(pgrep /data/.airship/)
kill -9 $($PGREP ariship) kill $(pgrep ppio)
kill -9 $($PGREP ppio) kill $(pgrep airship-agent)
pkill airship-agent
pkill airship
pkill ppio
sleep 3 sleep 3
removeall /data/plugins/ removeall /data/plugins/
removeall /data/.airship/ removeall /data/.airship/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment