Re: evaluate_retval in checkfs

2007-04-27 Thread Jorge Almeida
On Sat, 28 Apr 2007, Tijnema ! wrote: > On 4/27/07, Jorge Almeida <[EMAIL PROTECTED]> wrote: >> >> But evaluate_retval always returns 0... >> Shouldn't it return the value of $? that was set when it was called? Or >> should checkfs be changed? >> > > Yes it does return 0 allways, maybe you could t

Re: evaluate_retval in checkfs

2007-04-27 Thread Jorge Almeida
On Fri, 27 Apr 2007, Dan Nicholson wrote: > On 4/27/07, Jorge Almeida <[EMAIL PROTECTED]> wrote: >> /etc/rc.d/init.d/checkfs >> (...) >> boot_mesg "Mounting root file system in read-only mode..." >> mount -n -o remount,ro / >/dev/null >> evaluate_retval >> >>

Re: evaluate_retval in checkfs

2007-04-27 Thread Tijnema !
On 4/27/07, Jorge Almeida <[EMAIL PROTECTED]> wrote: > /etc/rc.d/init.d/checkfs >(...) >boot_mesg "Mounting root file system in read-only mode..." > mount -n -o remount,ro / >/dev/null > evaluate_retval > > if [ ${?} != 0 ]; then > echo_failur

Re: evaluate_retval in checkfs

2007-04-27 Thread Dan Nicholson
On 4/27/07, Jorge Almeida <[EMAIL PROTECTED]> wrote: > /etc/rc.d/init.d/checkfs > (...) > boot_mesg "Mounting root file system in read-only mode..." > mount -n -o remount,ro / >/dev/null > evaluate_retval > > if [ ${?} != 0 ]; then > echo_

evaluate_retval in checkfs

2007-04-27 Thread Jorge Almeida
/etc/rc.d/init.d/checkfs (...) boot_mesg "Mounting root file system in read-only mode..." mount -n -o remount,ro / >/dev/null evaluate_retval if [ ${?} != 0 ]; then echo_failure boot_mesg -n "FAILURE:\n\nCannot check root