Browse Source

make busybox services not run by default

emacs-27
Oliver Schmidhauser 6 years ago
committed by Henrik Grimler
parent
commit
ee49ff9d01
  1. 6
      packages/busybox/build.sh

6
packages/busybox/build.sh

@ -65,12 +65,14 @@ termux_step_post_make_install() {
# Setup some services
mkdir -p $TERMUX_PREFIX/var/service
cd $TERMUX_PREFIX/var/service
mkdir -p ftpd telnetd
mkdir -p ftpd/log telnetd/log
echo '#!/bin/sh' > ftpd/run
echo 'exec busybox tcpsvd -vE 0.0.0.0 8021 ftpd /data/data/com.termux/files/home' >> ftpd/run
echo '#!/bin/sh' > telnetd/run
echo 'exec busybox telnetd -F' >> telnetd/run
chmod +x */run
touch telnetd/down lftp/down
touch telnetd/down ftpd/down
ln -sf $PREFIX/share/termux-services/svlogger telnetd/log/run
ln -sf $PREFIX/share/termux-services/svlogger ftpd/log/run
}

Loading…
Cancel
Save