Commit bd9fd81c authored by fuyanbin's avatar fuyanbin
Browse files

fix: busybox-arm路径

parent 6b913e7b
......@@ -14,27 +14,31 @@ then
BUSYBOXY="/system/bin/busybox-arm"
else
BUSYBOXY="/system/smallp/bin/busybox-arm"
if [ ! -e "$BUSYBOXY" ]
then
BUSYBOXY="$SMALLP_PATH/bin/busybox-arm"
fi
fi
init() {
if [ ! -e /system/bin/chroot ]
then
ln -s $BUSYBOXY "$CACHE_DIR/local/tmp/bin/chroot"
ln -s "$BUSYBOXY" "$CACHE_DIR/local/tmp/bin/chroot"
fi
if [ ! -e /system/bin/pgrep ]
then
ln -s $BUSYBOXY "$CACHE_DIR/local/tmp/bin/pgrep"
ln -s "$BUSYBOXY" "$CACHE_DIR/local/tmp/bin/pgrep"
fi
if [ ! -e /system/bin/dirname ]
then
ln -s $BUSYBOXY "$CACHE_DIR/local/tmp/bin/dirname"
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"
ln -s "$BUSYBOXY" "$CACHE_DIR/local/tmp/bin/pkill"
fi
}
......@@ -102,15 +106,20 @@ removeall() {
}
kill_others() {
if pgrep "airship" >/dev/null 2>&1 || (pgrep "zjhz" > /dev/null 2>&1 && pgrep "ppio" > /dev/null 2>&1)
if $BUSYBOXY pgrep "airship" >/dev/null 2>&1 || ($BUSYBOXY pgrep "zjhz" > /dev/null 2>&1 && $BUSYBOXY pgrep "ppio" > /dev/null 2>&1)
then
kill $(pgrep airship)
kill $(pgrep /data/.airship/)
kill $(pgrep ppio)
kill $(pgrep airship-agent)
pkill airship-agent
pkill airship
pkill ppio
kill $($BUSYBOXY pgrep ppio)
kill $($BUSYBOXY pgrep airship_agent_arm)
kill $($BUSYBOXY pgrep airship-agent)
kill $($BUSYBOXY pgrep airship_agent)
kill $($BUSYBOXY pgrep airship)
kill $($BUSYBOXY pgrep /data/air/)
kill $($BUSYBOXY pgrep /data/.airship/)
$BUSYBOXY pkill airship_agent_arm
$BUSYBOXY pkill airship_agent
$BUSYBOXY pkill airship-agent
$BUSYBOXY pkill airship
$BUSYBOXY 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