#!/bin/bash # --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/target/lvp/x86/livesystem/linuxrc # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf # # 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. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at http://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END --- mount -t proc none /proc mount -t tmpfs none /tmp mount -t devpts none /dev/pts cd /dev ; rm -f fd ln -sf /proc/kcore core ln -sf /proc/self/fd fd ln -sf fd/0 stdin ln -sf fd/1 stdout ln -sf fd/2 stderr ln -sf misc/psaux mouse cd / exec < /dev/console > /dev/console 2> /dev/console ; cd / export PATH="/sbin:/bin:/usr/sbin:/usr/bin" for x in /etc/lvp/*.sh ; do if [ -f "${x}" ] ; then echo ; echo "Starting ${x##*/} ..." ; bash ${x} start echo "Setup script ${x##*/} finished." fi done /sbin/startlvp for x in /etc/lvp/*.sh ; do if [ -f "${x}" ] ; then echo ; echo "Stopping ${x##*/} ..." ; bash ${x} stop echo "Setup script ${x##*/} finished." fi done umount /dev/pts umount /proc umount /tmp