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

typo

parent 46959fd6
......@@ -31,6 +31,11 @@ init() {
then
ln -s $BUSYBOXY "$CACHE_DIR/local/tmp/bin/dirname"
fi
if [ ! -e /system/bin/pkill ]
then
ln -s $BUSYBOXY "$CACHE_DIR/local/tmp/bin/pkill"
fi
}
is_running() {
......@@ -97,20 +102,15 @@ removeall() {
}
kill_others() {
PGREP=$SMALLP_PATH/bin/pgrep
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)
if pgrep "airship" >/dev/null 2>&1 || (pgrep "zjhz" > /dev/null 2>&1 && pgrep "ppio" > /dev/null 2>&1)
then
kill $($PGREP ariship)
kill $($PGREP ppio)
kill -9 $($PGREP ariship)
kill -9 $($PGREP ppio)
kill $(pgrep airship)
kill $(pgrep /data/.airship/)
kill $(pgrep ppio)
kill $(pgrep airship-agent)
pkill airship-agent
pkill airship
pkill ppio
sleep 3
removeall /data/plugins/
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