10 lines
145 B
Plaintext
10 lines
145 B
Plaintext
|
#!/bin/sh
|
||
|
# Run parted with rlwrap
|
||
|
case "$1" in
|
||
|
([a-z]) part=/dev/sd$1;;
|
||
|
("") part= ;;
|
||
|
(*) part=$1;;
|
||
|
esac
|
||
|
shift
|
||
|
sudo rlwrap parted $part "$@"
|