1199536Smr#!/bin/sh
2199536Smr#
3199536Smr# Copyright (c) 2004-2005 Poul-Henning Kamp.
4199536Smr# All rights reserved.
5199536Smr#
6199536Smr# Redistribution and use in source and binary forms, with or without
7199536Smr# modification, are permitted provided that the following conditions
8199536Smr# are met:
9199536Smr# 1. Redistributions of source code must retain the above copyright
10199536Smr#    notice, this list of conditions and the following disclaimer.
11199536Smr# 2. Redistributions in binary form must reproduce the above copyright
12199536Smr#    notice, this list of conditions and the following disclaimer in the
13199536Smr#    documentation and/or other materials provided with the distribution.
14199536Smr#
15199536Smr# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16199536Smr# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17199536Smr# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18199536Smr# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19199536Smr# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20199536Smr# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21199536Smr# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22199536Smr# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23199536Smr# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24199536Smr# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25199536Smr# SUCH DAMAGE.
26199536Smr#
27199536Smr# $FreeBSD$
28199536Smr#
29199536Smr
30199536Smrset -e
31199536Smr
32199536Smrtrap "umount /cfg" 1 2 15 EXIT
33199536Smrmount /cfg
34199536Smrmkdir -p /cfg/ssh
35199536Smr(
36199536Smrcd /etc/ssh
37199536Smrcp ssh_host_* /cfg/ssh
38199536Smr)
39199536Smrumount /cfg
40199536Smrtrap 1 2 15 EXIT
41