post_install()
{
	#TODO Migration fix. Remove later
        if [ -S /run/systemd/journal/dev-log ] && [ ! -L /dev/log ]; then
                ln -sf /run/systemd/journal/dev-log /dev/log
        fi

	if [ -f /boot/grub/grub.cfg ]; then
		/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
	fi
}

post_upgrade()
{
	post_install
}

post_remove()
{
	post_install
}

op=$1
shift
$op $*

# vim: ft=sh
