Skip to content

Commit

Permalink
slight refactor on kern => kernver logic
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed May 5, 2011
1 parent 664e266 commit 9e86cb0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions geninit
Expand Up @@ -478,11 +478,9 @@ fi
# mktemp takes care of our error handling here
tmpdir=$(readlink -e "$(mktemp -d "${otmpdir:-/tmp}"/${0##*/}.XXXXXX)") || cleanup 1

# does the kernel exist inside the basedir?
# does the kernel exist inside the basedir? we may need to resolve it...
[[ $kern ]] && kernver=$(__get_kernver "$kern")
if [[ -z $kernver ]]; then
die "Invalid kernel specifier: $kern"
fi
[[ $kernver ]] || die "Invalid kernel specifier: $kern"
[[ -d $basedir/lib/modules/$kernver ]] || die "kernel \`$kernver' not found"

# is our supplied compression method (if supplied) valid?
Expand Down

0 comments on commit 9e86cb0

Please sign in to comment.