forked from pool/hdparm
Accepting request 261978 from home:Ledest:bashisms
fix bashisms in ultrabayd and udev.idedma.sh scripts OBS-URL: https://build.opensuse.org/request/show/261978 OBS-URL: https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=74
This commit is contained in:
parent
fcc7cb8fd2
commit
0444dbdb94
12
hdparm-9.43-fix-bashisms.patch
Normal file
12
hdparm-9.43-fix-bashisms.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -Ndur hdparm-9.43/contrib/ultrabayd hdparm-9.43-fix-bashisms/contrib/ultrabayd
|
||||||
|
--- hdparm-9.43/contrib/ultrabayd 2000-02-04 22:30:30.000000000 +0200
|
||||||
|
+++ hdparm-9.43-fix-bashisms/contrib/ultrabayd 2014-11-17 04:17:08.381048316 +0200
|
||||||
|
@@ -41,7 +41,7 @@
|
||||||
|
END
|
||||||
|
|
||||||
|
if [ "$d_type" != "$o_d_type" ] || [ "$d_id" != "$o_d_id" ]; then
|
||||||
|
- echo -n "\07" > /dev/tty1
|
||||||
|
+ printf "\07" > /dev/tty1
|
||||||
|
|
||||||
|
o_d_type="$d_type"
|
||||||
|
o_d_id="$d_id"
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 17 02:21:00 UTC 2014 - Led <ledest@gmail.com>
|
||||||
|
|
||||||
|
- fix bashisms in ultrabayd and udev.idedma.sh scripts
|
||||||
|
- add patches:
|
||||||
|
* hdparm-9.43-fix-bashisms.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 19 05:49:02 UTC 2014 - crrodriguez@opensuse.org
|
Fri Sep 19 05:49:02 UTC 2014 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ Source3: udev.idedma.sh
|
|||||||
Patch1: hdparm-nostrip.patch
|
Patch1: hdparm-nostrip.patch
|
||||||
Patch2: hdparm-wiper-warn.patch
|
Patch2: hdparm-wiper-warn.patch
|
||||||
Patch3: hdparm-leak-fix.patch
|
Patch3: hdparm-leak-fix.patch
|
||||||
|
Patch4: hdparm-9.43-fix-bashisms.patch
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(udev)
|
BuildRequires: pkgconfig(udev)
|
||||||
Url: http://sourceforge.net/projects/hdparm/
|
Url: http://sourceforge.net/projects/hdparm/
|
||||||
@ -48,6 +49,7 @@ driver and IDE drives.
|
|||||||
%patch1
|
%patch1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3
|
%patch3
|
||||||
|
%patch4 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" LDFLAGS= CC="%{__cc}"
|
make CFLAGS="$RPM_OPT_FLAGS -Wall -Wstrict-prototypes" LDFLAGS= CC="%{__cc}"
|
||||||
|
@ -35,15 +35,16 @@ for dev in $DEVICES_FORCE_IDE_DMA ; do
|
|||||||
|
|
||||||
IFS=":"
|
IFS=":"
|
||||||
for d in $dev ; do
|
for d in $dev ; do
|
||||||
case $((FIRST++)) in
|
case $FIRST in
|
||||||
0) DEVICE=$d ;;
|
0) DEVICE=$d ;;
|
||||||
1) MODE=$d ;;
|
1) MODE=$d ;;
|
||||||
*) OPTIONS="$OPTIONS$d:"
|
*) OPTIONS="$OPTIONS$d:"
|
||||||
esac
|
esac
|
||||||
|
FIRST=$((FIRST + 1))
|
||||||
done
|
done
|
||||||
unset d
|
unset d
|
||||||
|
|
||||||
if [ "$DEVICE" == "$1" ] ; then
|
if [ "$DEVICE" = "$1" ] ; then
|
||||||
echo "$DEVICE: setting up IDE DMA mode $MODE"
|
echo "$DEVICE: setting up IDE DMA mode $MODE"
|
||||||
|
|
||||||
# Set DMA mode by hdparm utility
|
# Set DMA mode by hdparm utility
|
||||||
|
Loading…
Reference in New Issue
Block a user