source: hybrid/branches/releng-9.0/nanobsd/tools/flash-node.sh@ 10841

Last change on this file since 10841 was 10841, checked in by rick, 13 years ago

Op het moment dat je inlogt met SSH op een normale proxy is je FIB=1, omdat
SSH op FIB=1 draait. Draai je dan handmatig dhclient vr0 zal dit je default
route op FIB=1 weer wissen, en dat is nu juist _niet_ de bedoeling.

Hard-coded de wis actie naar FIB=0 om zo altijd de goede te wissen.

Fixes nodefactory:ticket:172

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 580 bytes
Line 
1#!/bin/sh
2#
3# Upload image to node and flash partition
4#
5# Rick van der Zwet <info@rickvanderzwet.nl>
6
7. $(dirname $0)/package-build.inc.sh
8
9if [ -z "$1" ]; then
10 echo "Usage: $0 <host1> [<host2> <host3> ..]" 1>&2
11 exit 128
12fi
13
14BASEDIR=`dirname $0`
15CFG="${BASEDIR}/../cfg/nanobsd.wleiden"
16
17# Find object directory
18eval `grep '^NANO_NAME=' ${CFG}`
19OBJDIR="/usr/obj/nanobsd.${NANO_NAME}"
20IMG=${IMG:-${OBJDIR}/_.disk.image}
21
22if [ ! -r "${IMG}" ]; then
23 p_err Source ${IMG} does not exists
24fi
25
26for HOST in $*; do
27 cat $IMG | ssh -oBatchMode=yes $HOST /tools/update-wrapper
28done
29
Note: See TracBrowser for help on using the repository browser.