diff options
author | maximilian attems <maks@debian.org> | 2006-07-12 18:21:16 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2006-07-12 18:21:16 +0200 |
commit | 50586c0818aa8de3ba3aa1c105acbe31537a9be1 (patch) | |
tree | 3b58eab0db38393168cca8569fa213056974732a /update-initramfs | |
parent | f82a46fac97eee643cbd8600657f533a6e31665f (diff) |
- rename suspend boot script in resume
- update-initramfs add -b bootdif flag
document it
- check for noresume arg in init
Diffstat (limited to 'update-initramfs')
-rwxr-xr-x | update-initramfs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/update-initramfs b/update-initramfs index 1826233..71cc90d 100755 --- a/update-initramfs +++ b/update-initramfs @@ -19,6 +19,7 @@ Options: -u Update an existing initramfs -d Remove an existing initramfs -t Take over a custom initramfs with this one + -b Set alternate boot directory -v Be verbose -h This message @@ -287,7 +288,7 @@ takeover=0 ## -while getopts "k:cudyvht?" flag; do +while getopts "k:cudyvtb:h?" flag; do case "${flag}" in k) version="${OPTARG}" @@ -310,6 +311,13 @@ while getopts "k:cudyvht?" flag; do t) takeover="1" ;; + b) + BOOTDIR="${OPTARG}" + if [ ! -d $BOOTDIR ]; then + echo "Error: ${BOOTDIR} is not a directory." + exit 1 + fi + ;; h|?) usage ;; |