mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-02 00:02:55 +02:00
Wir kehren zurueck zu Kudzu, da hwinfo noch mehr Aerger macht.
sort_strings.pl erweitert damit er Umlaute automatisch kodiert. Tripwire und Sysstat (sar) hinzugefuegt. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@486 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -4,7 +4,7 @@ echo "Scanning source media"
|
||||
|
||||
# scan CDROM devices
|
||||
|
||||
for DEVICE in $(hwinfo --cdrom | grep "Device File" | awk -F: '{ print $2 }' | cut -c 7- | sort | uniq); do
|
||||
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 [ -e /cdrom/boot ]; then
|
||||
echo -n ${DEVICE} > /tmp/source_device
|
||||
@@ -14,7 +14,7 @@ for DEVICE in $(hwinfo --cdrom | grep "Device File" | awk -F: '{ print $2 }' | c
|
||||
done
|
||||
|
||||
# scan HD device (usb sticks, etc.)
|
||||
for DEVICE in $(hwinfo --usb --disk | grep "Device File" | awk -F: '{ print $2 }' | cut -c 7- | sort | uniq); do
|
||||
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 [ -e /cdrom/boot ]; then
|
||||
echo -n ${DEVICE}1 > /tmp/source_device
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Detecting Hardware"
|
||||
for MODULE in $(hwinfo --all | grep modprobe | awk '{ print $5 }' | tr -d \" | sort | uniq); do
|
||||
for MODULE in $(kudzu -qps -t 30 | grep driver | cut -d ' ' -f 2 | sort | uniq); do
|
||||
if [ "${MODULE}" = "unknown" ] || \
|
||||
[ "${MODULE}" = "ignore" ]; then
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user