#!/bin/sh
# mounts all partitions, 
# while-Scleife als "for(;;)"-Ersatz
# 031023

# hier einfügen, welche Harddisk-Partitionen gemountet werden sollen
# z.B. sda sdb ...
#for HD in hda sda
for HD in hda hdb
do
   i=13   # Anzahl der Partitionen auf der HD
   while ( test $i -gt 0 )
   do
      if ( test ! -e /mnt/$HD$i ); then 
         echo "/mnt/$HD$i does not exist, generating it" 
	 mkdir /mnt/$HD$i
      fi
      mount -v /dev/$HD$i /mnt/$HD$i
      i=$[$i-1]
   done
done

