run facters when starting init.d script

This commit is contained in:
Gui Iribarren 2013-09-22 19:59:36 -03:00
parent 9ef0c0caa0
commit 6240662804
2 changed files with 2 additions and 1 deletions

View file

@ -12,7 +12,7 @@ include $(TOPDIR)/rules.mk
#
PKG_NAME:=alfred
PKG_VERSION:=2013.3.0
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_MD5SUM:=018ef6262cdd11e900af31d71a864b13
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz

View file

@ -73,6 +73,7 @@ start()
fi
if [ "$run_facters" = "1" ]; then
( for file in $facters_dir/* ; do [ -x $file ] && $file ; done )
if ! ( grep -q "for file in $facters_dir/\* ; do " /etc/crontabs/root 2>/dev/null ) ; then
echo "*/5 * * * * ( for file in $facters_dir/* ; do [ -x \$file ] && \$file ; done )" >> /etc/crontabs/root
/etc/init.d/cron enable