12 lines
247 B
Bash
Executable file
12 lines
247 B
Bash
Executable file
#!/bin/sh
|
|
# Manage partitions
|
|
# TODO completion
|
|
case "$1" in
|
|
([a-z]) part=/dev/sd$1;;
|
|
("") part= ;; # TODO unmount and run on current
|
|
(/*) part=$1;;
|
|
(*) part=/dev/$1;;
|
|
esac
|
|
test "$#" -eq 0 || shift
|
|
cfdisk $part "$@" ||
|
|
sudo cfdisk $part "$@"
|