toolkit/func/core/pkg_tftp-server/10-get-test.sh

11 lines
228 B
Bash
Raw Normal View History

2022-06-20 23:49:14 +00:00
#!/bin/bash
r_log "tftp" "Getting a file from tftp"
chmod 777 /var/lib/tftpboot
echo "rocky func" > /var/lib/tftpboot/tftptest
tftp 127.0.0.1 -c get tftptest
grep -q "rocky func" tftptest
2022-11-22 02:25:23 +00:00
r_checkExitStatus $?
2022-06-20 23:49:14 +00:00
/bin/rm tftptest