15 lines
228 B
Bash
Executable File
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
|
|
|