]> git.pld-linux.org Git - packages/aumix.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:41 +0000 (16:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- need rebuilt rpm (with new macros.pld) to build these

Changed files:
    aumix.spec -> 1.66

aumix.spec

index acbb528d3ea91f374f9bd5e65629585b1c6926ba..f896c6af0972aca1aa08ac6234fc2a36a3f91657 100644 (file)
@@ -134,7 +134,8 @@ gzip -9nf AUTHORS BUGS ChangeLog NEWS README TODO
 %find_lang %{name}
 
 %post OSS-preserve-settings
-/sbin/chkconfig --add aumix
+
+%chkconfig_posst
 if [ ! -f /var/lock/subsys/aumix ]; then
        echo "Run \"/etc/rc.d/init.d/aumix start\" to initialize saving/restoring"
        echo "sound card mixer's settings on system shutdown/startup, and then"
@@ -142,12 +143,7 @@ if [ ! -f /var/lock/subsys/aumix ]; then
 fi
 
 %preun OSS-preserve-settings
-if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/aumix ]; then
-               /etc/rc.d/init.d/aumix stop
-       fi
-       /sbin/chkconfig --del aumix
-fi
+%chkconfig_preun
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.028074 seconds and 4 git commands to generate.