Hi Carlos, please apply and test this patch.
-- Tobias Gerschner Member of Board of Yoper Linux Ltd. NZ Knowing is not enough; we must apply. Willing is not enough; we must do. -- Tobias Gerschner Member of Board of Yoper Linux Ltd. NZ Knowing is not enough; we must apply. Willing is not enough; we must do.
--- rc.sysinit 2007-01-31 08:31:08.000000000 +1300 +++ rc.sysinit-new 2007-02-20 10:12:42.263262984 +1300 @@ -86,7 +86,12 @@ lastcheck="`cat /.fsck 2>/dev/null`" [ "$CHECK_INTERVALL" == "daily" ] && [ "$lastcheck" -lt "$check_day" ] && run_fsck=yes [ "$CHECK_INTERVALL" == "weekly" ] && [ "$check_day" == "1" ] && run_fsck=yes -[ "$CHECK_INTERVALL" == "monthly" ] && [ "$check_day" == "1" ] && [ "$[`date +%V`/4]*4]" == " $[`date +%V`]" ] && run_fsck=yes +if [ "$CHECK_INTERVALL" == "monthly" ] ; then + if [ "$check_day" == "1" ] ; then + date=`date +%V | sed 's|^0||1'` + [ "$[$date/4]*4]" == "$date" ] && run_fsck=yes + fi +fi if [ "$run_fsck" == "yes" ] ; then
_______________________________________________ yoper-dev mailing list [email protected] https://morpheus.pingos.org/cgi-bin/mailman/listinfo/yoper-dev
