iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
code cleanup, arch fixes
[automated-distro-installer]
/
wrt-setup
diff --git
a/wrt-setup
b/wrt-setup
index 981a290f0f0b0dd4909f71bca1e463908dfb512d..15f28cb7f553d3885eb1d0a86d5d070d1572afca 100755
(executable)
--- a/
wrt-setup
+++ b/
wrt-setup
@@
-25,7
+25,6
@@
pmirror() {
# doesn't go into the firmware. build new firmware if you want
# lots of upgrades.
f=(/tmp/opkg-lists/*)
# doesn't go into the firmware. build new firmware if you want
# lots of upgrades.
f=(/tmp/opkg-lists/*)
- f=${f[0]}
if ! (( $(date -r $f +%s) + 60*60*24 > $(date +%s) )); then
opkg update
fi
if ! (( $(date -r $f +%s) + 60*60*24 > $(date +%s) )); then
opkg update
fi
@@
-247,8
+246,8
@@
EOF
dnsmasq_restart=false
v cedit /etc/hosts <<EOF || dnsmasq_restart=true
192.168.1.1 wrt
dnsmasq_restart=false
v cedit /etc/hosts <<EOF || dnsmasq_restart=true
192.168.1.1 wrt
-192.168.1.2 treetowl mail.iankelling.org
faiserver
$HOME_DOMAIN
-192.168.1.3 frodo
+192.168.1.2 treetowl mail.iankelling.org $HOME_DOMAIN
+192.168.1.3 frodo
faiserver
192.168.1.4 htpc
192.168.1.5 x2
192.168.1.6 demohost
192.168.1.4 htpc
192.168.1.5 x2
192.168.1.6 demohost