Commit bd9fd81c authored by fuyanbin's avatar fuyanbin
Browse files

fix: busybox-arm路径

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