iankelling.org
/
git
/
automated-distro-installer
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6e542ed1b34e0bcdc925a3248c1533b3e7f89825
[automated-distro-installer]
/
wrt-setup-remote
1
#!/bin/bash
2
3
set -eE -o
pipefail
4
trap
'echo "
$0
:
$LINENO
:error:
\"
$BASH_COMMAND
\"
returned $?" >&2'
ERR
5
6
cd
"
${BASH_SOURCE%/*}
"
7
8
h
=
root@
192.168.1.1
9
scp
/
a
/
bin
/
fai
/
wrt-setup
/
a
/
bin
/
cedit
/
cedit
$h
:/
usr
/
bin
10
ssh
$h
<<EOF
11
if ! opkg list-installed|grep bash; then
12
opkg update
13
opkg install bash
14
fi
15
wrt-setup
16
EOF