File: mkfs

package info (click to toggle)
rootstrap 0.3-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 116 kB
  • ctags: 37
  • sloc: python: 126; makefile: 68; sh: 59
file content (8 lines) | stat: -rw-r--r-- 109 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/sh

if [ $fstype = "ext3" ]; then
    fstype=ext2
    options=-j
fi

mkfs.$fstype $options /dev/ubd/1