bin: rename sh to mksh, add back busybox sh

mksh cause issues when building images for arm and aarch64.
This commit is contained in:
Leonid Pliushch
2023-02-22 23:14:51 +02:00
parent 58a99c42cb
commit 55bb986db4
5 changed files with 1 additions and 1 deletions

View File

@@ -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

BIN
system/arm/bin/mksh Executable file

Binary file not shown.

Binary file not shown.

1
system/arm/bin/sh Symbolic link
View File

@@ -0,0 +1 @@
busybox

BIN
system/x86/bin/mksh Executable file

Binary file not shown.

Binary file not shown.

1
system/x86/bin/sh Symbolic link
View File

@@ -0,0 +1 @@
busybox