mirror of
https://github.com/termux/termux-docker.git
synced 2025-12-22 00:20:00 +00:00
bin: rename sh to mksh, add back busybox sh
mksh cause issues when building images for arm and aarch64.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/system/bin/sh
|
#!/system/bin/sh
|
||||||
|
|
||||||
if [ "$(id -u)" = "0" ] && [ -z "$(/system/bin/busybox pidof dnsmasq)" ]; then
|
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
|
sleep 1
|
||||||
if [ -z "$(/system/bin/busybox pidof dnsmasq)" ]; then
|
if [ -z "$(/system/bin/busybox pidof dnsmasq)" ]; then
|
||||||
echo "[!] Failed to start dnsmasq, host name resolution may fail." >&2
|
echo "[!] Failed to start dnsmasq, host name resolution may fail." >&2
|
||||||
|
|||||||
BIN
system/arm/bin/mksh
Executable file
BIN
system/arm/bin/mksh
Executable file
Binary file not shown.
Binary file not shown.
1
system/arm/bin/sh
Symbolic link
1
system/arm/bin/sh
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
busybox
|
||||||
BIN
system/x86/bin/mksh
Executable file
BIN
system/x86/bin/mksh
Executable file
Binary file not shown.
Binary file not shown.
1
system/x86/bin/sh
Symbolic link
1
system/x86/bin/sh
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
busybox
|
||||||
Reference in New Issue
Block a user