From: ms Date: Tue, 21 Aug 2007 11:42:44 +0000 (+0000) Subject: Laedt die USB-Controller von allein... X-Git-Tag: v2.3-beta1~465 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=149a26a83126b6d2d5694bd0a52fb78f36f0734d Laedt die USB-Controller von allein... Das soll die Probleme mit den USB-Tastaturen beheben. Die mount*.sh-Scripts ordentlich formatiert. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@795 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- diff --git a/src/install+setup/install/main.c b/src/install+setup/install/main.c index 309f225ad3..51c8969b89 100644 --- a/src/install+setup/install/main.c +++ b/src/install+setup/install/main.c @@ -155,6 +155,10 @@ int main(int argc, char *argv[]) mysystem("/sbin/modprobe generic"); mysystem("/sbin/modprobe ide-cd"); mysystem("/sbin/modprobe ide-disk"); + mysystem("/sbin/modprobe uhci_hcd"); + mysystem("/sbin/modprobe ohci_hcd"); + mysystem("/sbin/modprobe ehci_hcd"); + mysystem("/sbin/modprobe ohci1394"); mysystem("/sbin/modprobe sd_mod"); mysystem("/sbin/modprobe sr_mod"); mysystem("/sbin/modprobe usb-storage"); diff --git a/src/install+setup/install/mountdest.sh b/src/install+setup/install/mountdest.sh index c9306bb2f0..93b972d35e 100644 --- a/src/install+setup/install/mountdest.sh +++ b/src/install+setup/install/mountdest.sh @@ -6,50 +6,49 @@ echo "Scanning for possible destination drives" echo "--> IDE" for DEVICE in $(kudzu -qps -t 30 -c HD -b IDE | grep device: | cut -d ' ' -f 2 | sort | uniq); do echo -n "---> $DEVICE" - mount /dev/${DEVICE}1 /harddisk 2> /dev/null - if [ -n "$(ls /harddisk/ipfire-*.tbz2 2>/dev/null)" ]; then + mount /dev/${DEVICE}1 /harddisk 2> /dev/null + if [ -n "$(ls /harddisk/ipfire-*.tbz2 2>/dev/null)" ]; then umount /harddisk 2> /dev/null - echo "${DEVICE} is source drive - skipping" + echo "${DEVICE} is source drive - SKIP" continue - else - umount /harddisk 2> /dev/null - echo -n "$DEVICE" > /tmp/dest_device - echo "${DEVICE} - yes, it is our destination" - exit 0 + else + umount /harddisk 2> /dev/null + echo -n "$DEVICE" > /tmp/dest_device + echo "${DEVICE} - yes, it is our destination" + exit 0 fi done # scan USB/SCSI devices echo "--> USB/SCSI" for DEVICE in $(kudzu -qps -t 30 -c HD -b SCSI | grep device: | cut -d ' ' -f 2 | sort | uniq); do - echo -n "---> $DEVICE" + echo -n "---> $DEVICE" mount /dev/${DEVICE}1 /harddisk 2> /dev/null - if [ -n "$(ls /harddisk/ipfire-*.tbz2 2>/dev/null)" ]; then + if [ -n "$(ls /harddisk/ipfire-*.tbz2 2>/dev/null)" ]; then umount /harddisk 2> /dev/null - echo "${DEVICE} is source drive - skipping" + echo "${DEVICE} is source drive - SKIP" continue - else - umount /harddisk 2> /dev/null - echo -n "$DEVICE" > /tmp/dest_device - echo "${DEVICE} - yes, it is our destination" - exit 1 + else + umount /harddisk 2> /dev/null + echo -n "$DEVICE" > /tmp/dest_device + echo "${DEVICE} - yes, it is our destination" + exit 1 fi done # scan RAID devices echo "--> RAID" for DEVICE in $(kudzu -qps -t 30 -c HD -b RAID | grep device: | cut -d ' ' -f 2 | sort | uniq); do - echo -n "---> $DEVICE" - mount /dev/${DEVICE}p1 /harddisk 2> /dev/null - if [ -n "$(ls /harddisk/ipfire-*.tbz2 2>/dev/null)" ]; then + echo -n "---> $DEVICE" + mount /dev/${DEVICE}p1 /harddisk 2> /dev/null + if [ -n "$(ls /harddisk/ipfire-*.tbz2 2>/dev/null)" ]; then umount /harddisk 2> /dev/null - echo "${DEVICE} is source drive - skipping" - echo " is source drive" + echo "${DEVICE} is source drive - SKIP" continue - else + else umount /harddisk 2> /dev/null echo -n "$DEVICE" > /tmp/dest_device - echo "${DEVICE} - yes, it is our destination" + echo "${DEVICE} - yes, it is our destination" exit 2 fi done diff --git a/src/install+setup/install/mountsource.sh b/src/install+setup/install/mountsource.sh index d46a7e4931..bd89b4edc4 100644 --- a/src/install+setup/install/mountsource.sh +++ b/src/install+setup/install/mountsource.sh @@ -4,32 +4,32 @@ echo "Scanning source media" # scan CDROM devices for DEVICE in $(kudzu -qps -t 30 -c CDROM | grep device: | cut -d ' ' -f 2 | sort | uniq); do - mount /dev/${DEVICE} /cdrom 2> /dev/null - if [ -n "$(ls /cdrom/ipfire-*.tbz2 2>/dev/null)" ]; then - echo -n ${DEVICE} > /tmp/source_device - echo "Found Sources in ${DEVICE}" - else - echo "Found no Sources in ${DEVICE} skipping" - fi - umount /cdrom 2> /dev/null + mount /dev/${DEVICE} /cdrom 2> /dev/null + if [ -n "$(ls /cdrom/ipfire-*.tbz2 2>/dev/null)" ]; then + echo -n ${DEVICE} > /tmp/source_device + echo "Found tarball on ${DEVICE}" + else + echo "Found no tarballs on ${DEVICE} - SKIP" + fi + umount /cdrom 2> /dev/null done # scan HD device (usb sticks, etc.) for DEVICE in $(kudzu -qps -t 30 -c HD | grep device: | cut -d ' ' -f 2 | sort | uniq); do - mount /dev/${DEVICE}1 /cdrom 2> /dev/null - if [ -n "$(ls /cdrom/ipfire-*.tbz2 2>/dev/null)" ]; then - echo -n ${DEVICE} > /tmp/source_device - echo "Found Sources in ${DEVICE}" - else - umount /cdrom 2> /dev/null - echo "Found no Sources in ${DEVICE} skipping" - fi - umount /cdrom 2> /dev/null + mount /dev/${DEVICE}1 /cdrom 2> /dev/null + if [ -n "$(ls /cdrom/ipfire-*.tbz2 2>/dev/null)" ]; then + echo -n ${DEVICE} > /tmp/source_device + echo "Found tarball on ${DEVICE}" + else + umount /cdrom 2> /dev/null + echo "Found no tarballs on ${DEVICE} - SKIP" + fi + umount /cdrom 2> /dev/null done if [ -e /tmp/source_device ]; then - mount /dev/$(cat /tmp/source_device) /cdrom 2> /dev/null - exit 0 + mount /dev/$(cat /tmp/source_device) /cdrom 2> /dev/null + exit 0 else - exit 10 + exit 10 fi