scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit 2cf9cd727972d9991596dd6640797cdcf7622d4c
parent e4a41da626218b3c3423dc1d71cc5de3a82bd599
Author: sin <sin@2f30.org>
Date:   Mon Nov 21 12:14:38 +0000

Control upgrade-obsd from the command line

Diffstat:
upgrade-obsd | 24++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/upgrade-obsd b/upgrade-obsd @@ -33,7 +33,23 @@ finish() { fw_update } -#upgradekernel -#upgradeworld -#upgradexenocara -#finish +usage() { +cat << EOF +usage: upgrade-obsd [k] [w] [x] +k Upgrade kernel +w Upgrade world +x Upgrade xenocara +EOF +exit 1 +} + +for arg in "$@"; do + case "$arg" in + k) upgradekernel ;; + w) upgradeworld ;; + x) upgradexenocara ;; + *) usage ;; + esac +done + +finish