Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 154500 Details for
Bug 239741
Unnecessary dependency on /bin/csh
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
rewrite of the script to /bin/sh
amuFormat.sh (text/plain), 3.02 KB, created by
Matěj Cepl
on 2007-05-10 21:16:06 UTC
(
hide
)
Description:
rewrite of the script to /bin/sh
Filename:
MIME Type:
Creator:
Matěj Cepl
Created:
2007-05-10 21:16:06 UTC
Size:
3.02 KB
patch
obsolete
>#!/bin/sh ># ># amuFormat.sh Formats various types and sizes of PC-Cards, according to the ># AMU-specification ># ># parameters: $1: Card Type: The Card Type is written as disk/volume-label ># to the boot-record ># The string should have a length of max. 11 characters. ># ># $2: Drive character (b:, c:) ># ># 10-12-2003 lct created ># >vers=1.4 >fdrive="f:" > >#echo "debug: $0,$1,$2,$3,$4" > ># ># main() ># >echo "amuFormat $vers started..." > >if [[ $# -eq 0 ]] ; then > cat <<-EOF > Usage: amuFormat.sh <Card Type> <drive> > <Card Type> has to be defined in amuFormat.sh itself > <drive> has to be defined in mtools.conf >EOF > exit 0 >fi > > >echo "Formatting card in slot $2 as $1" > >if [[ "x$1" == "x8MBCARD-FW" ]] ; then > > ## determine formatting drive > if [[ ( "x$2" == "xb:") || ( "x$2" == "xB:") ]] ; then > fdrive="f:" > elif [[ ( "x$2" == "xc:") || ( "x$2" == "xC:" ) ]] ; then > fdrive="g:" > else > echo "Drive $2 not supported." > exit 1 > fi > > ## initialise partition table > mpartition -I $fdrive > > # write a partition table > mpartition -c -t245 -h2 -s32 -b32 $fdrive > > ## using the f: or g: drive for fat12 formatting... > ## see mtools.conf file... > mformat -c8 -v 8MBCARD-FW $fdrive > > minfo $2 > mdir $2 > > echo "done." > exit 0 > >fi > >if [[ "x$1" == "x32MBCARD-FW" ]] ; then > > #from amu_toolkit_0_6: mformat -t489 -h4 -c4 -n32 -H32 -r32 -vPC-CARD -M512 -N0000 c: > > ## initialise partition table > mpartition -I $2 > > ## write a partition table > mpartition -c -t489 -h4 -s32 -b32 $2 > > ## write boot-record, two FATs and a root-directory > mformat -c4 -v 32MBCARD-FW $2 > > minfo $2 > mdir $2 > > echo "done." > exit 0 > >fi > >if [[ "x$1" == "x64MBCARD-FW" ]] ; then > > echo "***** WARNING: untested on AvHMU, exiting *****" > exit 0 > > ## initialise partition table > mpartition -I $2 > > ## write a partition table > mpartition -c -t245 -h2 -s32 -b32 $2 > > ## write boot-record, two FATs and a root-directory > mformat -c8 -v 64MBCARD-FW $2 > > minfo $2 > mdir $2 > > echo "done." > exit 0 > > >fi > > >if [[ "x$1" == "x1GBCARD-FW" ]] ; then > > # from amu_toolkit_0_6: mformat -t2327 -h16 -c64 -n63 -H63 -r32 -v AMU-CARD -M512 -N 0000 c: > > echo "***** WARNING: untested on AvHMU *****" > > ## initialise partition table > mpartition -I $2 > > # write a partition table > mpartition -c -t2327 -h16 -s32 -b32 $2 > > ## write boot-record, two FATs and a root-directory > mformat -c64 -v 1GBCARD-FW $2 > > minfo $2 > mdir $2 > > echo "done." > exit 0 > > >fi > >if [[ "x$1" == "x64MBCARDSAN" ]] ; then > > # from amu_toolkit_0_6: mformat -t489 -h8 -c4 -n32 -H32 -r32 -v AMU-CARD -M512 -N 0000 c: > > ## initialise partition table > mpartition -I $2 > > # write a partition table > mpartition -c -t489 -h8 -s32 -b32 $2 > > ## write boot-record, two FATs and a root-directory > mformat -c4 -v 64MBCARDSAN $2 > > minfo $2 > mdir $2 > > echo "done." > exit 0 > > >fi > ># ># insert new cards here... ># > >echo "Card not supported." >exit 1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 239741
:
154500
|
154552