meson-s4t7: armbian-bsp-cli reinstall default modules file on uninstall

This commit is contained in:
Gunjan Gupta 2024-02-05 02:10:37 +05:30 committed by Igor
parent 03a9465f00
commit 95902429d1

View File

@ -186,3 +186,14 @@ function post_family_tweaks_bsp__add_fan_service() {
run_host_command_logged cp -R "${SRC}"/packages/bsp/meson-s4t7/${BOARD}/* "${destination}"/
fi
}
function meson_s4t7_board_side_bsp_cli_postrm() { # not run here
if [[ remove == "$1" ]] || [[ abort-install == "$1" ]]; then
cp /usr/share/initramfs-tools/modules /etc/initramfs-tools/modules
fi
}
function post_family_tweaks_bsp__add_postrm_hook() {
display_alert "$BOARD" "Adding postrm hook to restore /etc/initramfs-tools/modules file" "info"
postrm_functions+=(meson_s4t7_board_side_bsp_cli_postrm)
}