[mikrotik] update / minus bugs

This commit is contained in:
Nico Schottelius 2020-07-30 18:56:24 +02:00
parent 23139cfe9d
commit 7b24804ac9
2 changed files with 7 additions and 2 deletions

View File

@ -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!

View File

@ -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