#!/bin/sh




#Name:
#ext2 - check for filesystems of the type ext2 (DEPRECATED)
#
#
#Synopsis:
#ext2 <device>
#
#
#Description:
#Checks a device for a filesystem of the type ext2.
#
#This check program is deprecated. The check program blkid should be used
#instead.
#
#
#Operands:
#<device>
#Specifies the device to be checked (for example /dev/sda or
#/dev/disk/by-label/root).
#
#
#Exit Status:
#0
#The check was true.
#
#>0
#The check was false.
#
#
#Dependencies:
#This script depends on the check program blkid from the cryptsetup package.




device="$1"


#print a warning about the deprecated status of this check program
printf "Warning: The check program ext2 is deprecated and will be removed. The check program blkid should be used instead.\n" >&2

#invoke the check program blkid
/lib/cryptsetup/checks/blkid "${device}" "ext2"
















#Copyright © 2010, Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>.
#All rights reserved.
#
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program.  If not, see <http://www.gnu.org/licenses/>.
