]> git.pld-linux.org Git - packages/dibbler.git/commitdiff
- needs to be tested
authorsardzent <sardzent@pld-linux.org>
Wed, 19 Jan 2005 12:12:37 +0000 (12:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- no doc

Changed files:
    dibbler.spec -> 1.11

dibbler.spec

index 9cae47e61ba39ad20aff6425b912d931d01ce6b6..66e16793cbd2aab97894be5332a3a58761e0142e 100644 (file)
@@ -85,21 +85,23 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/ldconfig
-/sbin/chkconfig --add dibbler
-#if [ -f /var/lock/subsys/dibbler ]; then
-#        /etc/rc.d/init.d/dibbler restart 1>&2
-#else
-        echo "Run \"/etc/rc.d/init.d/dibbler start\" to start dibbler DHCP daemon."
-#fi
+if [ "$1" = "1" ]; then
+       /sbin/chkconfig --add dibbler
+       if [ -f /var/lock/subsys/dibbler ]; then
+               /etc/rc.d/init.d/dibbler restart 1>&2
+       else
+               echo "Run \"/etc/rc.d/init.d/dibbler start\" to start dibbler DHCP daemon."
+       fi
+fi
 
 
 %preun
-#if [ "$1" = "0" ];then
-#      if [ -f /var/lock/subsys/dhcpd ]; then
-#              /etc/rc.d/init.d/dhcpd stop >&2
-#      fi
-#      /sbin/chkconfig --del dhcpd
-#fi
+if [ "$1" = "0" ];then
+       if [ -f /var/lock/subsys/dibbler ]; then
+               /etc/rc.d/init.d/dibbler stop >&2
+       fi
+       /sbin/chkconfig --del dibbler
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.077314 seconds and 4 git commands to generate.