Skip to content

Commit

Permalink
Add dnsmasq support
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapral67 authored and licy183 committed Feb 29, 2024
1 parent 48c098b commit c07deea
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ ENV ANDROID_DATA /data
ENV ANDROID_ROOT /system
ENV PATH /data/data/com.termux/files/usr/bin
RUN if [[ ${BOOTSTRAP_ARCH} == 'arm' || ${BOOTSTRAP_ARCH} == 'i686' ]]; then exit; else \
/system/bin/mksh -T /dev/ptmx -c "/system/bin/dnsmasq -u root -g root --pid-file /dnsmasq.pid" && sleep 1 && \
su - system -c "/data/data/com.termux/files/usr/bin/apt update" && \
su - system -c "/data/data/com.termux/files/usr/bin/apt upgrade -o Dpkg::Options::=--force-confnew -yq" && \
rm -rf /data/data/com.termux/files/usr/var/lib/apt/* && \
rm -rf /data/data/com.termux/files/usr/var/log/apt/* && \
rm -rf /data/data/com.termux/cache/apt/* ;\
/system/bin/mksh -c "/system/bin/dnsmasq -u root -g root --pid-file /dnsmasq.pid" && sleep 1 && \
su -l system -c "apt update" && \
su -l system -c "apt upgrade -o Dpkg::Options::=--force-confnew -yq" && \
rm -rf /data/data/com.termux/files/usr/var/lib/apt/* && \
rm -rf /data/data/com.termux/files/usr/var/log/apt/* && \
rm -rf /data/data/com.termux/cache/apt/* ;\
fi

##############################################################################
Expand Down
Binary file modified system/arm/bin/dnsmasq
Binary file not shown.
Binary file modified system/arm/bin/mksh
Binary file not shown.
Binary file modified system/arm/lib/libcutils.so
Binary file not shown.
Binary file modified system/x86/bin/dnsmasq
Binary file not shown.
Binary file modified system/x86/bin/mksh
Binary file not shown.
Binary file modified system/x86/lib/libcutils.so
Binary file not shown.

0 comments on commit c07deea

Please sign in to comment.