diff --git a/entrypoint.sh b/entrypoint.sh index 86bc5b6..7ccec03 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,7 @@ #!/system/bin/sh if [ "$(id -u)" = "0" ] && [ -z "$(/system/bin/busybox pidof dnsmasq)" ]; then - /system/bin/sh -T /dev/ptmx -c "/system/bin/dnsmasq -u root -g root --pid-file /dnsmasq.pid" >/dev/null 2>&1 + /system/bin/mksh -T /dev/ptmx -c "/system/bin/dnsmasq -u root -g root --pid-file /dnsmasq.pid" >/dev/null 2>&1 sleep 1 if [ -z "$(/system/bin/busybox pidof dnsmasq)" ]; then echo "[!] Failed to start dnsmasq, host name resolution may fail." >&2 diff --git a/system/arm/bin/mksh b/system/arm/bin/mksh new file mode 100755 index 0000000..be881bb Binary files /dev/null and b/system/arm/bin/mksh differ diff --git a/system/arm/bin/sh b/system/arm/bin/sh deleted file mode 100755 index be881bb..0000000 Binary files a/system/arm/bin/sh and /dev/null differ diff --git a/system/arm/bin/sh b/system/arm/bin/sh new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/system/arm/bin/sh @@ -0,0 +1 @@ +busybox \ No newline at end of file diff --git a/system/x86/bin/mksh b/system/x86/bin/mksh new file mode 100755 index 0000000..9bc591d Binary files /dev/null and b/system/x86/bin/mksh differ diff --git a/system/x86/bin/sh b/system/x86/bin/sh deleted file mode 100755 index 9bc591d..0000000 Binary files a/system/x86/bin/sh and /dev/null differ diff --git a/system/x86/bin/sh b/system/x86/bin/sh new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/system/x86/bin/sh @@ -0,0 +1 @@ +busybox \ No newline at end of file