File: linuxrc.system

package info (click to toggle)
pgi 0.9.6.3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,792 kB
  • ctags: 801
  • sloc: sh: 4,540; python: 3,069; xml: 1,895; makefile: 1,727; perl: 1,080; ansic: 647; lisp: 151
file content (37 lines) | stat: -rw-r--r-- 805 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

# $Progeny: linuxrc.system,v 1.5 2002/02/18 02:09:26 branden Exp $

# mount the /proc file system
mount -t proc proc /proc

# manually load modules to enable things we can't detect
# XXX: discover 2.0 should enable us to detect IDE devices properly
manual_load="ide-probe-mod ide-scsi i82365 usb-storage"
echo -n "Loading manual boot devices:"
for module in $manual_load
do
	echo -n " $module"
	modprobe $module 2> /dev/null
done
echo " done."

echo -n "Loading discovered boot devices:"
for module in $(discover --disable-all --enable=pci \
			--format="%m\n" scsi)
do
	if [ -n "$module" -a "$module" != "ignore" ]
	then
		echo -n " $module"
		if ! modprobe $module 2> /dev/null
		then
			echo -n "(!)"
		fi
	fi
done
echo " done."

# unmount /proc
umount /proc

# vim:ai:noet:sts=8:sw=8:tw=0: