File: mips.sh

package info (click to toggle)
partitioner 0.39
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 320 kB
  • ctags: 20
  • sloc: ansic: 146; sh: 83; makefile: 56
file content (27 lines) | stat: -rw-r--r-- 576 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

DISK="$1"
[ -z "$DISK" ] && exit 1

case "`archdetect`" in
"mips/r4k-ip22")
        # SGI dvh disklabels are best supported by fdisk.
        fdisk $DISK
        ;;
"mips/r5k-ip22")
        # SGI dvh disklabels are best supported by fdisk.
        fdisk $DISK
        ;;
"mips/sb1-bcm91250a")
        # The SWARM is a normal ATX board with standard IDE/SCSI devices
        cfdisk $DISK
        ;;
"mips/sb1a-bcm91480b")
        # The BigSur is a normal ATX board with standard IDE/SCSI devices
        cfdisk $DISK
        ;;
*)
        fdisk $DISK
        ;;
esac

exit $?