Commit faab90f0 authored by Bernhard Landauer's avatar Bernhard Landauer

evaluate rt-basekernels

parent 7491c161
#!/bin/bash #!/bin/bash
# rt-basekernels # evaluate rt-basekernels if installed
rt_base=linux46 [[ $(ls /boot/linux*rt-[xi]* 2>/dev/null | wc -l) != 0 ]] && IFS=. read rt_maj rt_min <<< $(cut -f 1-2 -d '.' /boot/linux*rt-[xi]*) && rt_base=linux$rt_maj$rt_min
rt_lts_base=linux44 [[ $(ls /boot/linux*rt-l* 2>/dev/null | wc -l) != 0 ]] && IFS=. read rtl_maj rtl_min <<< $(cut -f 1-2 -d '.' /boot/linux*rt-l*) && rt_lts_base=linux$rtl_maj$rtl_min
root_check() { root_check() {
[[ $EUID != 0 ]] && err "Please run as root." [[ $EUID != 0 ]] && err "Please run as root."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment