1 |
#!/bin/sh |
#!/bin/sh |
2 |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mkinitrd-magellan/livecd/linuxrc.sh,v 1.5 2008-01-25 11:12:52 niro Exp $ |
# $Header: /home/cvsd/magellan-cvs/magellan-src/mkinitrd-magellan/livecd/linuxrc.sh,v 1.6 2008-04-10 20:16:43 niro Exp $ |
3 |
|
|
4 |
# loads given kernel modules |
# loads given kernel modules |
5 |
load_kernel_modules() |
load_kernel_modules() |
127 |
# searching usbstick |
# searching usbstick |
128 |
if [ "${DOUSB}" = "yes" ]; then |
if [ "${DOUSB}" = "yes" ]; then |
129 |
ROOTFS="vfat" |
ROOTFS="vfat" |
130 |
[[ -n ${FORCED_ROOTFS} ]] && ROOTFS="${FORCED_ROOTFS}" |
[[ ! -z ${FORCED_ROOTFS} ]] && ROOTFS="${FORCED_ROOTFS}" |
131 |
check_drives "/dev/sd*" "${ROOTFS}" |
check_drives "/dev/sd*" "${ROOTFS}" |
132 |
check_drives "/dev/sg*" "${ROOTFS}" |
check_drives "/dev/sg*" "${ROOTFS}" |
133 |
fi |
fi |
134 |
|
|
135 |
# for cdrom_device in $CDROM_LIST (ide) |
# for cdrom_device in $CDROM_LIST (ide) |
136 |
ROOTFS="iso9660" |
ROOTFS="iso9660" |
137 |
[[ -n ${FORCED_ROOTFS} ]] && ROOTFS="${FORCED_ROOTFS}" |
[[ ! -z ${FORCED_ROOTFS} ]] && ROOTFS="${FORCED_ROOTFS}" |
138 |
check_drives "/dev/cdroms/*" "${ROOTFS}" |
check_drives "/dev/cdroms/*" "${ROOTFS}" |
139 |
check_drives "/dev/hd*" "${ROOTFS}" |
check_drives "/dev/hd*" "${ROOTFS}" |
140 |
|
|
141 |
# scsi cdroms |
# scsi cdroms |
142 |
if [ "${DOSCSI}" = "yes" ] || [ "${DOSATA}" = "yes" ]; then |
if [ "${DOSCSI}" = "yes" ] || [ "${DOSATA}" = "yes" ]; then |
143 |
ROOTFS="iso9660" |
ROOTFS="iso9660" |
144 |
[[ -n ${FORCED_ROOTFS} ]] && ROOTFS="${FORCED_ROOTFS}" |
[[ ! -z ${FORCED_ROOTFS} ]] && ROOTFS="${FORCED_ROOTFS}" |
145 |
check_drives "/dev/sr*" "${ROOTFS}" |
check_drives "/dev/sr*" "${ROOTFS}" |
146 |
check_drives "/dev/sg*" "${ROOTFS}" |
check_drives "/dev/sg*" "${ROOTFS}" |
147 |
check_drives "/dev/scd*" "${ROOTFS}" |
check_drives "/dev/scd*" "${ROOTFS}" |