[mikrotik] update / minus bugs
This commit is contained in:
parent
23139cfe9d
commit
7b24804ac9
2 changed files with 7 additions and 2 deletions
|
@ -16,7 +16,12 @@ conf() {
|
|||
ssh admin@${target} "$@"
|
||||
}
|
||||
copy() {
|
||||
scp "$1" admin@${target}:
|
||||
if echo ${target} | grep -q :; then
|
||||
ltarget="[$target]"
|
||||
else
|
||||
ltarget="$target"
|
||||
fi
|
||||
scp "$1" admin@${ltarget}:
|
||||
}
|
||||
|
||||
# store ssh key in the admin user!
|
||||
|
|
|
@ -29,7 +29,7 @@ cd "$tmp"
|
|||
wget "${url}"
|
||||
unzip "${file}"
|
||||
|
||||
pkg_list="dhcp ipv6 lcd lte multicast ppp routing security system user-manager wireless"!
|
||||
pkg_list="dhcp ipv6 lcd lte multicast ppp routing security system user-manager wireless"
|
||||
|
||||
while [ $# -ge 1 ]; do
|
||||
target=$1; shift
|
||||
|
|
Loading…
Reference in a new issue