diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-12-30 14:00:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-12-30 14:03:07 +0000 |
commit | 34028faf4bcb764dd20a21914cc2363d16a1de9b (patch) | |
tree | 3d60b7b9582f260e4d801acae81807aa4c414be5 /main/openrc/modloop.initd | |
parent | 7963d6e01fe00302e8af2e0e540f1f1aec01528a (diff) | |
download | aports-34028faf4bcb764dd20a21914cc2363d16a1de9b.tar.bz2 aports-34028faf4bcb764dd20a21914cc2363d16a1de9b.tar.xz |
main/openrc: modloop: fix detection of vanilla kernel flavor
ref #3672
Diffstat (limited to 'main/openrc/modloop.initd')
-rw-r--r-- | main/openrc/modloop.initd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/openrc/modloop.initd b/main/openrc/modloop.initd index bfdac87b35..c59cd9a7d9 100644 --- a/main/openrc/modloop.initd +++ b/main/openrc/modloop.initd @@ -96,7 +96,11 @@ start() { bootimagedir=${KOPT_BOOT_IMAGE%/*} bootdir=${alpine_mnt}${bootimagedir} kver=$(uname -r) - kflavor=${kver##*-} + case $kver in + *-rc[0-9]) kflavor=vanilla;; + *-[a-z]*) kflavor=${kver##*-};; + *) kflavor=vanilla;; + esac for modloop in ${alpine_mnt}$KOPT_modloop \ ${bootdir}/modloop-$kver \ ${bootdir}/modloop-$kflavor \ |