Files
dotfiles/bin/run_ftpd
T
2024-11-23 19:23:53 +07:00

15 lines
228 B
Bash
Executable File

#!/bin/sh
# if [ $(id -u) -ne 0 ]; then
# echo "You must be root"
# exit 1
# fi
if [[ "$1" == "" ]]; then
echo "using: run_ftpd <path_to_directory>"
exit 1
fi
sudo busybox tcpsvd -vE 0.0.0.0 21 busybox ftpd -w -S -A $1