1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_VMG8623-T50B/vmg8623_t50b_default_release/f.sh

22 lines
275 B
Bash
Executable File

#!/bin/sh
user=admin
passwd=zyad1234
path=`ls bin`
src_path="bin/$path/zyxel"
src_file="ras.bin"
dst_path="fw"
dst_file="ras"
if [ "$1" != "" ] ; then
passwd=$1
fi
ftp -n 192.168.1.1 << EOF
user $user $passwd
binary
ha
put $src_path/$src_file $dst_path/$dst_file
bye
EOF