slitaz-boot-scripts rev 208
typo in rc.functions
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 16 20:33:55 2010 +0200 (2010-04-16) |
parents | 59dc80ac52e8 |
children | 2dbab688949f |
files | etc/init.d/rc.functions |
line diff
1.1 --- a/etc/init.d/rc.functions Thu Apr 15 18:13:41 2010 +0200 1.2 +++ b/etc/init.d/rc.functions Fri Apr 16 20:33:55 2010 +0200 1.3 @@ -33,7 +33,7 @@ 1.4 if [ ! -e $1 ]; then 1.5 return 1 1.6 elif grep -qs "Name:.$(basename $2)$" \ 1.7 - /proc/$(sed 's/[^0-9]//g' < $1 | head -1)/status ; then 1.8 + /proc/$(sed 's/[^0-9]//g' < $1 | head -n 1)/status ; then 1.9 return 0 1.10 else 1.11 rm -f $1