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

Last change on this file was 71c9190, checked in by Chris Staub <chris@…>, 11 years ago

Don't need /lib/udev/devices anymore

  • Property mode set to 100755
File size: 937 bytes
Line 
1#!/bin/bash
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
17echo -n "Mounting kernel-based file systems:"
18echo -n " proc"
19mount -n /proc
20echo -n " sys"
21mount -n /sys
22echo ""
23
24echo "Starting udev"
25mount -n -t tmpfs -o mode=0755 udev /dev
26chmod 1777 /dev/shm
27echo "" > /sys/kernel/uevent_helper
28/sbin/udevd --daemon
29mkdir -p /dev/.udev/queue
30/sbin/udevadm trigger
31/sbin/udevadm settle
32
33echo "Remounting Root File System"
34mount -n -o remount,rw /
35
36echo "Creating mtab"
37> /etc/mtab
38mount -f /
39mount -f /proc
40mount -f /sys
41mount -a -O no_netdev
42
43echo "Setting System Clock"
44hwclock --hctosys --utc
Note: See TracBrowser for help on using the repository browser.