[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

broken sysvinit?



Hi,
is it just me, or is /etc/init.d/checkroot.sh really horribly broken?
This is a sniper from it. It bafs on the exec 10  (as expected) and doesn't
remount root rw, so the booting is rather painfull.
The previous version had only '(' instead of the first exec and a
')</etc/fstab' on the place of the second one.

#
## Read /etc/fstab.
#
exec 10>&0 </etc/fstab
rootmode=rw
rootopts=rw
rootcheck=yes
devfs=
while read fs mnt type opts dump pass junk
do
   case "$fs" in
      ""|\#*)
         continue;
         ;;
   esac
   [ "$type" = devfs ] && devfs="$fs"
   [ "$mnt" != / ] && continue
   rootopts="$opts"
   [ "$pass" = 0 ] && rootcheck=no
   case "$opts" in
      ro|ro,*|*,ro|*,ro,*)
         rootmode=ro
         ;;
   esac
done
exec 0>&10 10>&-


				Petr Cech
-- 
Debian GNU/Linux maintainer - www.debian.{org,cz}
           cech@atrey.karlin.mff.cuni.cz

Resistance is futile. You all will be packaged



Reply to: