File: do_option

package info (click to toggle)
partman-prep 3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 248 kB
  • ctags: 7
  • sloc: sh: 165; makefile: 40
file content (14 lines) | stat: -rwxr-xr-x 155 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

dev=$2
id=$3

cd $dev

[ -d $dev/$id ] || mkdir $dev/$id

echo prep >$dev/$id/method
if [ -f $dev/$id/format ]; then
    rm $dev/$id/format
fi