X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=sh%2Fexample6;fp=sh%2Fexample6;h=7cb4467502fd58f763cb77d72acb98858c2ad8f3;hb=e8928b001ed31694031257202775375e2f50e1a8;hp=0000000000000000000000000000000000000000;hpb=bc1784a2103d884f85a448af856d5c6254583979;p=hivex.git diff --git a/sh/example6 b/sh/example6 new file mode 100755 index 0000000..7cb4467 --- /dev/null +++ b/sh/example6 @@ -0,0 +1,126 @@ +#!/bin/bash - +# Copyright (C) 2009-2010 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +set -e + +# Hypothetical viostor installation in a W2K3 system registry. + +if [ $# -ne 2 ]; then + echo "$0 system system.new" + exit 1 +fi + +d=`dirname $0` + +$d/hivexsh -w <