iankelling.org
/
git
/
automated-distro-installer
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
various fixes
[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
h
=
root@
192.168.1.1
7
scp
/
a
/
bin
/
fai
/
wrt-setup
/
a
/
bin
/
cedit
/
cedit
$h
:/
usr
/
bin
8
ssh
$h
<<'EOF'
9
if ! opkg list-installed|grep bash; then
10
opkg update
11
opkg install bash
12
fi
13
wrt-setup
14
EOF