mirror of https://github.com/tLDP/LDP
45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
<![ CDATA [#! /bin/sh
|
|
|
|
# A script to install the bare metal recovery scripts. With any luck,
|
|
# this will comply with the "Filesystem Hierarchy Standard",
|
|
# http://www.pathname.com/fhs/, version 2.3, announced on January 29,
|
|
# 2004.
|
|
|
|
# Time-stamp: <2007-07-06 13:33:29 ccurley install>
|
|
|
|
# Copyright 2007 through the last date of modification, Charles Curley.
|
|
|
|
# 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., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
# 02110-1301, USA
|
|
|
|
# You can also contact the Free Software Foundation at
|
|
# http://www.fsf.org/
|
|
|
|
# Where we put the archives ready for making CDs, etc.
|
|
mkdir -p /var/lib/bare.metal.recovery
|
|
|
|
# Keep them secure from pesky snooping users who don't need to be able
|
|
# to hack a copy of, say, /etc/shadow.
|
|
chmod 700 /var/lib/bare.metal.recovery
|
|
|
|
# Backup time executables.
|
|
cp -rp save.metadata make.fdisk /usr/sbin
|
|
|
|
# Save the recovery time executables we provide. The archiving
|
|
# programs look for them here and save them into the archives.
|
|
mkdir -p /etc/bare.metal.recovery
|
|
cp -rp first.stage restore.metadata /etc/bare.metal.recovery
|
|
]]>
|