Last change
on this file since 29f0426 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 |
|
---|
15 | export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/tools/sbin
|
---|
16 |
|
---|
17 | if [ -d "/lib64" ]; then
|
---|
18 | udev_libdir=/lib64
|
---|
19 | else
|
---|
20 | udev_libdir=/lib
|
---|
21 | fi
|
---|
22 |
|
---|
23 | echo -n "Mounting kernel-based file systems:"
|
---|
24 | echo -n " proc"
|
---|
25 | mount -n /proc
|
---|
26 | echo -n " sys"
|
---|
27 | mount -n /sys
|
---|
28 | echo ""
|
---|
29 |
|
---|
30 | echo "Starting udev"
|
---|
31 | mount -n -t tmpfs -o mode=0755 udev /dev
|
---|
32 | cp --preserve=all --recursive --remove-destination ${udev_libdir}/udev/devices/* /dev
|
---|
33 | chmod 1777 /dev/shm
|
---|
34 | echo "" > /sys/kernel/uevent_helper
|
---|
35 | /sbin/udevd --daemon
|
---|
36 | mkdir -p /dev/.udev/queue
|
---|
37 | /sbin/udevtrigger
|
---|
38 | /sbin/udevsettle
|
---|
39 |
|
---|
40 | echo "Remounting Root File System"
|
---|
41 | mount -n -o remount,rw /
|
---|
42 |
|
---|
43 | echo "Creating mtab"
|
---|
44 | > /etc/mtab
|
---|
45 | mount -f /
|
---|
46 | mount -f /proc
|
---|
47 | mount -f /sys
|
---|
48 | mount -a -O no_netdev
|
---|
49 |
|
---|
50 | echo "Setting System Clock"
|
---|
51 | hwclock --hctosys --utc
|
---|
Note:
See
TracBrowser
for help on using the repository browser.