Skip to content

Commit e0e4618

Browse files
mfxaMarcus Funch
authored andcommitted
HWE Kernel Script: Simplify version logic
1 parent 800b75e commit e0e4618

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

os2borgerpc_kiosk/os2borgerpc_kiosk/install_and_switch_to_hwe_kernel.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ if ! get_os2borgerpc_config os2_product | grep --quiet kiosk; then
99
exit 1
1010
fi
1111

12-
VERSION_NUMBER=$(lsb_release -d | cut --delimiter " " --fields 2 | cut --delimiter "." --fields "1 2")
13-
14-
PKG="linux-generic-hwe-$VERSION_NUMBER"
12+
PKG="linux-generic-hwe-$(lsb_release --release --short)"
1513

1614
if [ "$ACTIVATE" = 'True' ]; then
1715
apt-get install --assume-yes "$PKG"

0 commit comments

Comments
 (0)