#!/bin/bash

rm -f /var/cache/livepatch/*

for module in /sys/kernel/livepatch/* ; do
    # go out when the directory is empty
    [ "$module" == '/sys/kernel/livepatch/*' ] && break

    /usr/bin/klp store_patch_info "${module#/sys/kernel/livepatch/}"
done

# vim: ai sw=4 et sts=4 ft=sh
