>deant at hawaii.rr.com wrote: > >You are not giving the whole loop: > > while true; do > case "${1}" in > > -p) > pidfile="${2}" > shift 2 > ;; > > *) > if [ -n "${2}" ]; then > echo "Too many arguments" > return 1 > else > break > fi > ;; > esac > done > > >The 'break' command breaks out of the while loop. It's not the same as >C/C++. > >The 'functions' file is only present for a few (currently 19 are left) >bootscripts in BLFS that have not yet been updated to LFS 7.0 syntax. > > -- Bruce
Well, then something else is amiss. the statusproc() function defined here: http://www.linuxfromscratch.org/lfs/view/stable/scripts/apds02.html does not have the *) case. And neither does the one defined in lfs-bootscripts-20111017/lfs/lib/services/init-functions as downloaded just now from http://www.linuxfromscratch.org/lfs/downloads/7.0/lfs-bootscripts-20111017.tar.bz2 -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page