gpt-2741gnac_root_files/_mtdblock5.img.extracted/squashfs-root/usr/script/sysUpdateCfg.sh
2023-11-26 03:26:24 -03:00

12 lines
226 B
Bash
Executable file

if [ $# -lt 3 ] ; then
echo "usage: $0 [configuration FILE] [serverIPAddr] [userName]"
exit 0
fi
configFile=$1
serverIPAddr=$2
userName=$3
sftp -S /usr/sbin/ssh "$userName"@"$serverIPAddr" << EOF
get "$configFile"
quit
EOF