]> git.pld-linux.org Git - packages/dhcp.git/commitdiff
- standarized %post, dhcp-2_0-1
authorkloczek <kloczek@pld-linux.org>
Fri, 9 Jul 1999 22:22:40 +0000 (22:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- fix: missing "fi".

Changed files:
    dhcp.spec -> 1.10

dhcp.spec

index e590176fa6559e7abee3578fce58a4642d9e42a3..254e410368ed4ab1373a6e3bd9d8f3a2f6f291e0 100644 (file)
--- a/dhcp.spec
+++ b/dhcp.spec
@@ -69,13 +69,16 @@ touch $RPM_BUILD_ROOT/var/state/%{name}/{dhcpd,dhclient}.leases
 touch /var/state/%{name}/dhcpd.leases
 
 if [ -f /var/run/dhcpd.pid ]; then
-       /etc/rc.d/init.d/dhcpd restart
+       /etc/rc.d/init.d/dhcpd restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/dhcpd start\" to start dhcpd daemon."
 fi
 
 %preun
-if [ $1 = 0 ];then
-       /etc/rc.d/init.d/dhcpd stop
+if [ "$1" = "0" ];then
        /sbin/chkconfig --del dhcpd
+       /etc/rc.d/init.d/dhcpd stop >&2
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.086221 seconds and 4 git commands to generate.