Don't leave dhcpcd-hooks behind if it's empty.

This commit is contained in:
Xin LI 2013-10-29 06:06:15 +00:00
parent 90713c7acd
commit 7bcbe8bbed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331930
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= dhcpcd
PORTVERSION= 5.5.6
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://roy.marples.name/downloads/dhcpcd/ \
LOCAL/delphij

View file

@ -10,3 +10,4 @@ libexec/dhcpcd-hooks/30-hostname
libexec/dhcpcd-hooks/01-test
libexec/dhcpcd-hooks/29-lookup-hostname
libexec/dhcpcd-run-hooks
@unexec [ -s %D/libexec/dhcpcd-hooks ] || rm -f %D/libexec/dhcpcd-hooks