aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xkern6
1 files changed, 3 insertions, 3 deletions
diff --git a/kern b/kern
index d95ab9b..9c49ef7 100755
--- a/kern
+++ b/kern
@@ -26,18 +26,18 @@ get_latest_kernel() {
eselect --brief kernel list | tail -n1
}
-get_current_kernel() {
+get_selected_kernel() {
basename "$(eselect --brief kernel show 2>/dev/null)"
}
set_kernel() {
kern=${1:-$(get_latest_kernel)}
- current=$(get_current_kernel)
+ selected=$(get_selected_kernel)
kerndir=$SRCDIR/$kern
test -d "$kerndir" || errx "No such file or directory: $kerndir"
- if test "$kern" = "$current"; then
+ if test "$kern" = "$selected"; then
err "Warning: Latest kernel already selected: $kern"
return
fi