#!/bin/bash
S=$1
PDEV=sdg
DEV=${S##*/}
echo $S
if [[ $S == -* ]]
then
echo "uuuu"
$0_org $1
exit
fi
if [[ "$DEV" < "$PDEV" ]]
then
echo "can't mkfs $S"
echo "Because it is protected"
echo "!!!!!!!!!!!!!!!!!"
exit
else
$0_org $1
fi
S=$1
PDEV=sdg
DEV=${S##*/}
echo $S
if [[ $S == -* ]]
then
echo "uuuu"
$0_org $1
exit
fi
if [[ "$DEV" < "$PDEV" ]]
then
echo "can't mkfs $S"
echo "Because it is protected"
echo "!!!!!!!!!!!!!!!!!"
exit
else
$0_org $1
fi