]> git.pld-linux.org Git - packages/hdparm.git/commitdiff
- rc.hdparm instead of init.d/hdparm (hdparm should be run before
authorSebastian Zagrodzki <sebek@zagrodzki.net>
Fri, 14 Apr 2000 11:50:15 +0000 (11:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  anything is mounted rw

Changed files:
    hdparm.spec -> 1.25

hdparm.spec

index b7c4cdea9233d6b67375f3705688abd56b22ccc7..c2dca566509e8216aa7b40b98ef50a65ea7de16f 100644 (file)
@@ -5,7 +5,7 @@ Summary(pl):    Narz
 Summary(tr):   (E)IDE sabit disklerle ilgili bazý parametreleri deðiþtirir
 Name:          hdparm
 Version:       3.9
-Release:       1
+Release:       2
 Copyright:     distributable
 Group:         Utilities/System
 Group(pl):     Narzêdzia/System
@@ -14,7 +14,6 @@ Source1:      hdparm.init
 Source2:       hdparm.sysconfig
 Patch0:                hdparm-optflags.patch
 Patch1:                hdparm-sparc.patch
-PreReq:                /sbin/chkconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -58,20 +57,12 @@ install -d $RPM_BUILD_ROOT{{/sbin,%{_mandir}/man8},/etc/{sysconfig,rc.d/init.d}}
 install -s hdparm $RPM_BUILD_ROOT/sbin
 install hdparm.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hdparm
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/rc.hdparm
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/hdparm
 
 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
        Changelog
 
-%post
-/sbin/chkconfig --add hdparm
-
-%preun
-if [ "$1" = "0" ]; then
-       /sbin/chkconfig --del hdparm
-fi
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -79,6 +70,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc *.gz
 %attr(755,root,root) /sbin/hdparm
-%attr(754,root,root) /etc/rc.d/init.d/hdparm
+%attr(754,root,root) /etc/rc.d/rc.hdparm
 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/hdparm
 %{_mandir}/man8/*
This page took 0.101363 seconds and 4 git commands to generate.