build/bin/kernels.inc

4 lines
222 B
PHP
Raw Normal View History

2014-11-02 09:42:47 +01:00
kernels="$(for d in $(find /usr/src -maxdepth 1 -name "linux-*-sabayon" -type d -print); do d=$(basename $d); echo ${d/linux-}; done | sort)"
running_kernel="$(d=$(basename $(readlink /usr/src/linux)); echo ${d/linux-})"