source: bootscripts-standard/netboot/rc.sysinit@ 1680407

Last change on this file since 1680407 was 1680407, checked in by Jim Gifford <clfs@…>, 17 years ago

Added Netboot Scripts

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/bin/sh
2########################################################################
3# Begin /rc.sysinit
4#
5# Description : Modified Bootscript for NFSRoot booting
6#
7# Authors : Jim Gifford - jim@linuxfromscratch.org
8#
9# Version : 00.00
10#
11# Notes :
12#
13########################################################################
14
15export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/tools/sbin
16
17if [ -d "/lib64" ]; then
18 udev_libdir=/lib64
19else
20 udev_libdir=/lib
21fi
22
23echo -n "Mounting kernel-based file systems:"
24echo -n " proc"
25mount -n /proc
26echo -n " sys"
27mount -n /sys
28echo ""
29
30echo "Starting udev"
31mount -n -t tmpfs -o mode=0755 udev /dev
32cp --preserve=all --recursive --remove-destination ${udev_libdir}/udev/devices/* /dev
33chmod 1777 /dev/shm
34echo "" > /sys/kernel/uevent_helper
35/sbin/udevd --daemon
36mkdir -p /dev/.udev/queue
37/sbin/udevtrigger
38/sbin/udevsettle
39
40echo "Remounting Root File System"
41mount -n -o remount,rw /
42
43echo "Creating mtab"
44> /etc/mtab
45mount -f /
46mount -f /proc
47mount -f /sys
48mount -a -O no_netdev
49
50echo "Setting System Clock"
51hwclock --hctosys --utc
Note: See TracBrowser for help on using the repository browser.