Hi guys, I am trying to restart cron whenever I update base-files package.
So I wrote a script "package/base-files/ipkg/base-files.postinst" :
/etc/init.d/S??cron restart
It gave me error while compiling the firmware
could not find file /etc/init.d/S??cron
So I tried :
IS_FIRMWARE=$(echo $IPKG_INSTROOT | grep build_mipsel)
if [ "$IS_FIRMWARE" = "" ];then
crontab /etc/crontabs/rootcrons
$IPKG_INSTROOT/etc/init.d/S??cron restart
crontab /etc/crontabs/rootcrons
else
echo "*****************$IPKG_INSTROOT**********************************************"
fi
It worked but is this the right way ?
Plus the command : "crontab /etc/crontabs/rootcrons" is not getting executed.
(Last edited by lnxnubie on 17 Jul 2007, 08:29)