add mods_cleanup

This commit is contained in:
Tobias Powalowski 2023-10-25 20:23:45 +02:00
parent 5449f69580
commit 505609bfa6

View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-or-later
# Created by Tobias Powalowski <tpowa@archlinux.org>
_run ()
{
! grep -qw 'archboot' /etc/hostname && return
_install_mods
rm -r /lib/modules
_MODS="" _MOD_DEPS=""
}
# vim: set ft=sh ts=4 sw=4 et: