]> git.pld-linux.org Git - packages/aumix.git/blobdiff - aumix.spec
- reverting last change: removing new macros from %p{re,ost}{,un}
[packages/aumix.git] / aumix.spec
index 714a3806522c70111280799854fe96b0d5ba1f5e..acbb528d3ea91f374f9bd5e65629585b1c6926ba 100644 (file)
@@ -134,8 +134,7 @@ gzip -9nf AUTHORS BUGS ChangeLog NEWS README TODO
 %find_lang %{name}
 
 %post OSS-preserve-settings
-
-%chkconfig_posst
+/sbin/chkconfig --add aumix
 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"
@@ -143,7 +142,12 @@ if [ ! -f /var/lock/subsys/aumix ]; then
 fi
 
 %preun OSS-preserve-settings
-%chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/aumix ]; then
+               /etc/rc.d/init.d/aumix stop
+       fi
+       /sbin/chkconfig --del aumix
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.132335 seconds and 4 git commands to generate.