# 20_create_dotfiles.sh
#
# Create some . dot files for Relax-and-Recover
#
#    Relax-and-Recover 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.

#    Relax-and-Recover 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 Relax-and-Recover; if not, write to the Free Software
#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#
#

# create a simple bash history file, use this ruler to make sure that
# the comments stay in a single line :-)
#-------------------------------------------------------80-|
cat <<EOF > $ROOTFS_DIR/root/.bash_history
: : : : : WHAT ELSE WOULD YOU HAVE EXPECTED HERE?
vi /var/lib/rear/layout/diskrestore.sh   # View/modify disk restore script
vi /var/lib/rear/layout/disklayout.conf  # View/modify disk layout configuration
less $LOGFILE   # View log file
loadkeys -d     # Load default keyboard layout (US)
rear recover    # Recover your system
EOF
chmod $v 0644 $ROOTFS_DIR/root/.bash_history >&2

# any other dot files should be listed below
