rc: proper fix for previous; directory always exists but may be empty

This commit is contained in:
Franco Fichtner 2015-04-01 09:06:10 +02:00
parent 3c42319865
commit 4d7e435ac7

View File

@ -1,6 +1,6 @@
#!/bin/sh
if [ ! -d /etc/rc.conf.d ]; then
if [ -z "$(ls /etc/rc.conf.d)" ]; then
exit 0
fi