[arch-commits] Commit in hwdetect/trunk (PKGBUILD hwdetect)
Tobias Powalowski
tpowa at archlinux.org
Sat Mar 28 13:21:18 UTC 2009
Date: Saturday, March 28, 2009 @ 09:21:17
Author: tpowa
Revision: 31808
upgpkg: hwdetect 2009.03-1
Modified:
hwdetect/trunk/PKGBUILD
hwdetect/trunk/hwdetect
----------+
PKGBUILD | 4 ++--
hwdetect | 19 ++++++-------------
2 files changed, 8 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-03-28 13:21:09 UTC (rev 31807)
+++ PKGBUILD 2009-03-28 13:21:17 UTC (rev 31808)
@@ -1,7 +1,7 @@
# $Id$
# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
pkgname=hwdetect
-pkgver=2009.01
+pkgver=2009.03
pkgrel=1
pkgdesc="Hardware detection script with loading modules and mkinitcpio.conf / rc.conf support"
arch=(i686 x86_64)
@@ -12,4 +12,4 @@
build() {
install -D -m 755 $startdir/src/hwdetect $startdir/pkg/sbin/hwdetect
}
-md5sums=('9552b26b66f7b90d2d12f7d324007961')
+md5sums=('76658017051a668aeb0b46e30e4dbc73')
Modified: hwdetect
===================================================================
--- hwdetect 2009-03-28 13:21:09 UTC (rev 31807)
+++ hwdetect 2009-03-28 13:21:17 UTC (rev 31808)
@@ -38,8 +38,7 @@
echo " --hooks show HOOKS="
echo " --hooks-dir use this directory for HOOKS check"
echo " --dsdt add dsdt to HOOKS="
- echo " --raid add raid to HOOKS="
- echo " --raid-partitions add raid-partitions to HOOKS="
+ echo " --mdadm add mdadm to HOOKS="
echo " --dmraid add dmraid to HOOKS="
echo " --encrypt add encrypt to HOOKS="
echo " --lvm2 add lvm2 to HOOKS="
@@ -80,11 +79,8 @@
# dsdt switch
[ "$(echo $* | grep '\-dsdt')" ] && DSDT=1
-# raid switch
-[ "$(echo $* | grep '\-raid-partition')" ] && RAID_PARTITIONS=1
-if ! [ "$RAID_PARTITIONS" = "1" ]; then
- [ "$(echo $* | grep '\-raid')" ] && RAID=1
-fi
+# mdadm switch
+[ "$(echo $* | grep '\-mdadm')" ] && MDADM=1
# dmraid switch
[ "$(echo $* | grep '\-dmraid')" ] && DMRAID=1
@@ -391,7 +387,7 @@
if [ "$HOOKS_DIR" = "" ]; then
HOOKS_DIR="/lib/initcpio/install"
fi
- START_HOOKS="base udev dsdt autodetect ide pata scsi sata usb fw pcmcia net raid raid-partitions dmraid usbinput keymap encrypt lvm2 filesystems"
+ START_HOOKS="base udev dsdt autodetect ide pata scsi sata usb fw pcmcia net dmraid mdadm usbinput keymap encrypt lvm2 filesystems"
# remove the ones that don't exist on the system
for i in ${START_HOOKS}; do
if ! [ -e "${HOOKS_DIR}/$i" ]; then
@@ -410,12 +406,9 @@
if ! [ "$KEYMAP" = "1" ]; then
START_HOOKS=$(echo $START_HOOKS | sed -e "s/keymap//g")
fi
- if ! [ "$RAID" = "1" ]; then
- START_HOOKS=$(echo $START_HOOKS | sed -e "s/\ raid\ //g")
+ if ! [ "$MDADM" = "1" ]; then
+ START_HOOKS=$(echo $START_HOOKS | sed -e "s/\ mdadm\ //g")
fi
- if ! [ "$RAID_PARTITIONS" = "1" ]; then
- START_HOOKS=$(echo $START_HOOKS | sed -e "s/raid-partitions\ //g")
- fi
if ! [ "$DMRAID" = "1" ]; then
START_HOOKS=$(echo $START_HOOKS | sed -e "s/dmraid//g")
fi
More information about the arch-commits
mailing list