=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/Attic/rc.shutdown,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- src/etc/Attic/rc.shutdown 2010/10/26 20:56:03 1.8 +++ src/etc/Attic/rc.shutdown 2010/11/17 13:43:19 1.9 @@ -1,4 +1,4 @@ -# $OpenBSD: rc.shutdown,v 1.8 2010/10/26 20:56:03 robert Exp $ +# $OpenBSD: rc.shutdown,v 1.9 2010/11/17 13:43:19 ajacoutot Exp $ # # If it exists, this script is run at system-shutdown by reboot(8), # halt(8). If the architecture supports keyboard requested halting, @@ -9,7 +9,7 @@ echo -n 'stopping local daemons:' -while [ -n "$rc_scripts" ]; do +while [ -n "${rc_scripts}" ]; do _r=${rc_scripts##* } rc_scripts=${rc_scripts%%*( )${_r}} [ -x /etc/rc.d/${_r} ] && /etc/rc.d/${_r} stop && echo -n " ${_r}"