source: bootscripts/contrib/livecd/startup@ 1f7827a2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1f7827a2 was 163a6701, checked in by Jim Gifford <clfs@…>, 19 years ago

r720@server (orig r718): jim | 2005-11-18 08:06:26 -0800
Added bootscripts to cross-lfs svn

  • Property mode set to 100755
File size: 810 bytes
Line 
1#!/bin/sh
2############################################################################
3# Begin $rc_base/init.d/startup
4#
5# Description : Removes etc symlink and untars etc and root
6#
7# Authors : Original by Chris Lingard, chris@stockwith.co.uk
8# Modified by Jeremy Huntwork, jhuntwork@linuxfromscratch.org
9#
10# Date : 2005-01-26
11#
12############################################################################
13
14. /etc/sysconfig/rc
15. $rc_functions
16
17case "$1" in
18 start)
19 boot_mesg "Unpacking files to /etc..."
20 cd /
21 cp /etc/locatedb /var/lib/locate/
22 /bin/rm /etc /init
23 /bin/tar xjf /.cdrom/etc.tar.bz2
24 echo_ok
25 boot_mesg "Unpacking files to /root..."
26 /bin/tar xjf /.cdrom/root.tar.bz2
27 echo_ok
28 ;;
29
30 *)
31 echo "Usage: $0 {start}"
32 exit 1
33 ;;
34esac
35
36# End $rc_base/init.d/
Note: See TracBrowser for help on using the repository browser.