Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Current Path : /proc/self/root/lib/rpm/fileattrs/ |
Current File : //proc/self/root/lib/rpm/fileattrs/kmod.attr |
%__kmod_path ^/lib/modules/.*/(modules.builtin|.*\.ko|.*\.ko\.gz|.*\.ko\.bz2|.*\.ko\.xz|.*\.ko\.zst)$ %__kmod_provides() %{lua: function basename(fn) return string.gsub(fn, "(.*/)(.*)", "%2") end function strip_compress_sfx(fn) return string.gsub(fn, "(.*)(\.gz|\.bz2|\.xz|\.zst)?$", "%1") end function printdep(mod) print("kmod("..mod..") ") end local fn = rpm.expand("%{1}") local bn = basename(fn) if bn == "modules.builtin" then for l in io.lines(fn) do local builtin_mod = basename(l) printdep(builtin_mod) if strip_compress_sfx(builtin_mod) ~= builtin_mod then printdep(strip_compress_sfx(builtin_mod)) end end else local mod = string.match(bn, "%g+.ko") if mod then printdep(mod) if strip_compress_sfx(mod) ~= mod then printdep(strip_compress_sfx(mod)) end end end }