1146402Sphk#!/bin/sh 2146402Sphk# 3150412Sphk# Copyright (c) 2004-2005 Poul-Henning Kamp. 4150412Sphk# All rights reserved. 5146402Sphk# 6150412Sphk# Redistribution and use in source and binary forms, with or without 7150412Sphk# modification, are permitted provided that the following conditions 8150412Sphk# are met: 9150412Sphk# 1. Redistributions of source code must retain the above copyright 10150412Sphk# notice, this list of conditions and the following disclaimer. 11150412Sphk# 2. Redistributions in binary form must reproduce the above copyright 12150412Sphk# notice, this list of conditions and the following disclaimer in the 13150412Sphk# documentation and/or other materials provided with the distribution. 14146402Sphk# 15150412Sphk# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16150412Sphk# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17150412Sphk# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18150412Sphk# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19150412Sphk# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20150412Sphk# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21150412Sphk# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22150412Sphk# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23150412Sphk# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24150412Sphk# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25150412Sphk# SUCH DAMAGE. 26150412Sphk# 27146402Sphk# $FreeBSD$ 28150412Sphk# 29146402Sphk 30150412Sphkset -e 31146402Sphk 32150412Sphktrap "umount /cfg" 1 2 15 EXIT 33150412Sphkmount /cfg 34150553Sphkmkdir -p /cfg/ssh 35146402Sphk( 36146402Sphkcd /etc/ssh 37150553Sphkcp ssh_host_* /cfg/ssh 38146402Sphk) 39150412Sphkumount /cfg 40150412Sphktrap 1 2 15 EXIT 41