summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-02 22:34:31 +0200
committerDave Reisner <dreisner@archlinux.org>2011-07-02 22:43:25 +0200
commit127517d9c3cecbab255c2e1247bc12ccc72c914e (patch)
treec17f93e16aed7dcf96855d4322cb303cd393d342
parent08d7abb0769701e3c14053b1b2406147ef9dd021 (diff)
downloadmkinitcpio-127517d9c3cecbab255c2e1247bc12ccc72c914e.tar.gz
mkinitcpio-127517d9c3cecbab255c2e1247bc12ccc72c914e.tar.xz
cleanup rarely and unused variable declarations
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xmkinitcpio7
1 files changed, 2 insertions, 5 deletions
diff --git a/mkinitcpio b/mkinitcpio
index dec139b..5aa79d7 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -14,7 +14,6 @@ shopt -s extglob
# Settings
KERNELVERSION=$(uname -r)
-CARCH=$(uname -m)
FUNCTIONS=functions
CONFIG=mkinitcpio.conf
HOOKDIR=hooks
@@ -34,11 +33,9 @@ PATH=$PATH:/sbin:/usr/sbin
# GREP_OPTIONS="--color=always" will break everything
unset GREP_OPTIONS
-APPNAME=${0##*/}
-
usage() {
cat <<EOF
-usage: $APPNAME [options]
+usage: ${0##*/} [options]
Options:
-b BASEDIR Use BASEDIR. default: /
@@ -46,7 +43,7 @@ usage: $APPNAME [options]
-g IMAGE Generate a cpio image as IMAGE. default: no
-H HOOKNAME Output help for hook 'HOOKNAME'.
-h Display this message.
- -k KERNELVERSION Use KERNELVERSION. default: $(uname -r)
+ -k KERNELVERSION Use KERNELVERSION. default: $KERNELVERSION
-L List all available hooks.
-M Display modules found via autodetection.
-n Disable colorized output messages.