Intii scriptu :
====================================
#! /bin/sh
# TFM Linux
# this script let's you to select for each patition
# the file system type .
# this is non destructive script for testing only
DIALOG=${DIALOG=dialog}
tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
trap "rm -f $tempfile" 0 1 2 5 15
temp1=`sfdisk -l -uM | grep Linux | grep -v "Linux swap" | cut -f 1 -d "
"`
echo "" >$tempfile
for PI in ${temp1}; do
P1=`$DIALOG --stdout --backtitle "TFM Linux" \
--title "Configuring FileSystem" \
--radiolist "This dialog allowes you \
to select File System Format for Each partition you created\n\n\
Configure $PI\n" 20 61 5 \
"ext2" "Plain old Linux FileSystem" off \
"xfs" "Journalised FileSystem from SGI" ON \
"reiserfs" "Journalised FileSystem from NameSys" off`
echo "mkfs.$P1 $PI " >> $tempfile
done
cat $tempfile
====================================
Acuma . Dati si voi pareri . Scriptul depinde de dialog si de sfdisk
Va place asha ? Optimizari ?
--
Lead programmer,
Mihai Moldovanu ([EMAIL PROTECTED])
WEB's: http://www.tfm.ro/
http://portal.tfm.ro/
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.