close Warning: Can't use blame annotator:
No changeset 9883 in the repository

source: hybrid/branches/releng-9.0/nanobsd/tools/deploy-image.sh@ 10419

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

Rewrote Captive Portal to use Packet Filter (pf) instead. This is much robuster and better administrable then ipfw.

Also cleaned out most of the ugly looking cache code.

  • Property svn:executable set to *
File size: 526 bytes
RevLine 
1#!/bin/sh
2# Rsync minimal changes directly to live image
3
4. $(dirname $0)/package-build.inc.sh
5
6HOST=$1
7SLICE=${2:-''}
8
9if [ -z "$1" ]; then
10 echo "Usage $0: <host> [<p1|p2>]"
11 echo ""
12 echo "By default update the next available slice"
13 exit 128
14fi
15
16# Find object directory
17IMG=${OBJDIR}/_.disk.image
18
19if [ ! -r "${IMG}" ]; then
20 p_err Source ${IMG} does not exists
21 exit 1
22fi
23
24echo "# Going to deploy $IMG to $HOST (slice:$SLICE)"
25ssh $HOST mount || exit 1
26cat $IMG | ssh $HOST /tools/update$SLICE || exit 1
27
28exit 0
Note: See TracBrowser for help on using the repository browser.